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:
parent
f4fe6e3a1e
commit
94c39eaf0d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user