1
0
mirror of https://github.com/revspace/operame synced 2024-12-04 21:57:30 +00:00

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

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;