mirror of https://github.com/joan2937/pigpio
Fix waveCBsOOLs tallys for 2d dma stride.
This commit is contained in:
parent
fc37a8c867
commit
bea536389f
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++)
|
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_READ) {numCB++; numTOOL++;}
|
||||||
if (waves[i].flags & WAVE_FLAG_TICK) {numCB++; numTOOL++;}
|
if (waves[i].flags & WAVE_FLAG_TICK) {numCB++; numTOOL++;}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue