Fix waveCBsOOLs tallys for 2d dma stride.

This commit is contained in:
Guy McSwain 2020-05-31 14:26:37 -05:00
parent fc37a8c867
commit bea536389f
1 changed files with 3 additions and 1 deletions

View File

@ -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++;}