Skip to content

Commit

Permalink
Fix waveCBsOOLs tallys for 2d dma stride.
Browse files Browse the repository at this point in the history
  • Loading branch information
guymcswain committed Jun 27, 2020
1 parent a77351a commit 5395bbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pigpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;}

Expand Down

0 comments on commit 5395bbe

Please sign in to comment.