mirror of
https://github.com/revspace/operame
synced 2024-12-04 13:47:29 +00:00
More bits to support >1 minute MQTT intervals
Oops, overlooked that 16 when copy/pasting the macro.
This commit is contained in:
parent
7fb7682cfe
commit
d1942fcaa0
@ -394,7 +394,7 @@ void setup() {
|
||||
if (ota_enabled) setup_ota();
|
||||
}
|
||||
|
||||
#define every(t) for (static uint16_t _lasttime; (uint16_t)((uint16_t)millis() - _lasttime) >= (t); _lasttime = millis())
|
||||
#define every(t) for (static unsigned long _lasttime; (unsigned long)((unsigned long)millis() - _lasttime) >= (t); _lasttime = millis())
|
||||
|
||||
void loop() {
|
||||
static int co2;
|
||||
|
Loading…
Reference in New Issue
Block a user