From 6b38815f3b2818801835e8c8d3d5218ec71541ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Wed, 11 Jul 2018 11:46:15 +0200 Subject: [PATCH] Fix variable length for millis in relay.ino module --- code/espurna/relay.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index 451ba018..6f5a5d76 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -285,8 +285,8 @@ bool relayStatus(unsigned char id, bool status, bool report, bool group_report) } else { - unsigned int current_time = millis(); - unsigned int fw_end = _relays[id].fw_start + 1000 * RELAY_FLOOD_WINDOW; + unsigned long current_time = millis(); + unsigned long fw_end = _relays[id].fw_start + 1000 * RELAY_FLOOD_WINDOW; unsigned long delay = status ? _relays[id].delay_on : _relays[id].delay_off; _relays[id].fw_count++;