mirror of
https://github.com/revspace/operame
synced 2025-12-13 16:06:30 +00:00
Don't catch up with missed intervals
This commit is contained in:
parent
f4fe6e3a1e
commit
94c39eaf0d
1 changed files with 1 additions and 1 deletions
|
|
@ -390,7 +390,7 @@ void setup() {
|
||||||
if (ota_enabled) setup_ota();
|
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() {
|
void loop() {
|
||||||
static int co2;
|
static int co2;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue