This commit is contained in:
HTotoo
2023-12-08 22:12:29 +01:00
parent c558ad3683
commit 049acdea9b
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -47,10 +47,10 @@ void WeatherProcessor::execute(const buffer_c8_t& buffer) {
tm += mag;
if (meashl == currentHiLow && currentDuration < 10'000'000) // allow pass 'end' signal
{
if (currentDuration < UINT32_MAX) currentDuration += usperTick;
if (currentDuration < UINT32_MAX) currentDuration += nsPerDecSamp;
} else { // called on change, so send the last duration and dir.
if (protoList) protoList->feed(currentHiLow, currentDuration / 1000);
currentDuration = usperTick;
currentDuration = nsPerDecSamp;
currentHiLow = meashl;
}
}