diff options
author | Guy McSwain <guy.mcswain@gmail.com> | 2020-05-31 14:26:37 -0500 |
---|---|---|
committer | Guy McSwain <guy.mcswain@gmail.com> | 2020-06-27 07:25:45 -0500 |
commit | 5395bbed13e175a16c8fc27d006e3c2b6ccd6782 (patch) | |
tree | 149288b9cd836481624305eb6250849f0ac45824 | |
parent | a77351a941e6716a588c48b99ef0fd3462be9cae (diff) |
Fix waveCBsOOLs tallys for 2d dma stride.
-rw-r--r-- | pigpio.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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++;} |