1
0
mirror of https://github.com/revspace/operame synced 2024-12-04 13:47:29 +00:00

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

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;