projects
/
pigpio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a77351a
)
Fix waveCBsOOLs tallys for 2d dma stride.
author
Guy McSwain
<guy.mcswain@gmail.com>
Sun, 31 May 2020 19:26:37 +0000
(14:26 -0500)
committer
Guy McSwain
<guy.mcswain@gmail.com>
Sat, 27 Jun 2020 12:25:45 +0000
(07:25 -0500)
pigpio.c
patch
|
blob
|
history
diff --git
a/pigpio.c
b/pigpio.c
index 5b1147641c4184efac21cb464fd5e57cca9ae659..2c528704b9901a59ee589bdff806170c43576918 100644
(file)
--- a/
pigpio.c
+++ b/
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++;}