Browse Source

Reset the pulse timeout every time an MQTT message is sent with the non-normal payload value (#454)

i18n
Xose Pérez 6 years ago
parent
commit
51298a6061
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      code/espurna/relay.ino

+ 3
- 0
code/espurna/relay.ino View File

@ -146,6 +146,9 @@ bool relayStatus(unsigned char id, bool status, bool report, bool group_report)
rfbStatus(id, status);
#endif
// Update the pulse counter if the relay is already in the non-normal state (#454)
relayPulse(id);
} else {
unsigned int current_time = millis();


Loading…
Cancel
Save