mirror of https://github.com/joan2937/pigpio
Update reportedLevels prior to monitoring bits
This commit is contained in:
parent
934874be2f
commit
1101ce4d5e
1
pigpio.c
1
pigpio.c
|
@ -6371,6 +6371,7 @@ static void * pthAlertThread(void *x)
|
||||||
}
|
}
|
||||||
|
|
||||||
alertEmit(sample, reports, changedBits, sTick);
|
alertEmit(sample, reports, changedBits, sTick);
|
||||||
|
reportedLevel = sample[numSamples -1].level;
|
||||||
|
|
||||||
if (totalSamples > gpioStats.maxSamples)
|
if (totalSamples > gpioStats.maxSamples)
|
||||||
gpioStats.maxSamples = numSamples;
|
gpioStats.maxSamples = numSamples;
|
||||||
|
|
Loading…
Reference in New Issue