Merge branch 'reportedLevels' of https://github.com/guymcswain/pigpio into guymcswain-reportedLevels

This commit is contained in:
joan 2018-10-21 09:27:40 +01:00
commit 3a403c353d
1 changed files with 1 additions and 0 deletions

View File

@ -6371,6 +6371,7 @@ static void * pthAlertThread(void *x)
}
alertEmit(sample, reports, changedBits, sTick);
reportedLevel = sample[numSamples -1].level;
if (totalSamples > gpioStats.maxSamples)
gpioStats.maxSamples = numSamples;