mirror of https://github.com/joan2937/pigpio
Fix waveCBsOOLs tallys for 2d dma stride.
This commit is contained in:
parent
a77351a941
commit
5395bbed13
4
pigpio.c
4
pigpio.c
|
@ -3000,7 +3000,9 @@ static void waveCBsOOLs(int *numCBs, int *numBOOLs, int *numTOOLs)
|
|||
|
||||
for (i=0; i<numWaves; i++)
|
||||
{
|
||||
if (waves[i].gpioOn || waves[i].gpioOff) {numCB++; numBOOL++;}
|
||||
if (waves[i].gpioOn) {numBOOL++;}
|
||||
if (waves[i].gpioOff) {numBOOL++;}
|
||||
if (waves[i].gpioOn || waves[i].gpioOff) {numCB++;}
|
||||
if (waves[i].flags & WAVE_FLAG_READ) {numCB++; numTOOL++;}
|
||||
if (waves[i].flags & WAVE_FLAG_TICK) {numCB++; numTOOL++;}
|
||||
|
||||
|
|
Loading…
Reference in New Issue