Browse Source

Fix variable length for millis in relay.ino module

rfm69
Xose Pérez 5 years ago
parent
commit
6b38815f3b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      code/espurna/relay.ino

+ 2
- 2
code/espurna/relay.ino View File

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


Loading…
Cancel
Save