More bits to support >1 minute MQTT intervals

Oops, overlooked that 16 when copy/pasting the macro.
This commit is contained in:
Juerd Waalboer 2021-01-02 19:19:25 +01:00
parent 7fb7682cfe
commit d1942fcaa0
1 changed files with 1 additions and 1 deletions

View File

@ -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;