Don't catch up with missed intervals

This commit is contained in:
Juerd Waalboer 2020-12-27 21:10:38 +01:00
parent f4fe6e3a1e
commit 94c39eaf0d
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ void setup() {
if (ota_enabled) setup_ota();
}
#define every(t) for (static uint16_t _lasttime; (uint16_t)((uint16_t)millis() - _lasttime) >= (t); _lasttime += (t))
#define every(t) for (static uint16_t _lasttime; (uint16_t)((uint16_t)millis() - _lasttime) >= (t); _lasttime = millis())
void loop() {
static int co2;