SonoffBoilerplate
SonoffBoilerplate copied to clipboard
state CMD_BUTTON_CHANGE not resetted to CMD_WAIT
I think that, after line 580, there should be a reset of cmd to CMD_WAIT:
.... if (duration < 1000) { Serial.println("short press - toggle relay"); toggle(); cmd= CMD_WAIT; // was missing ? } else if (duration < 5000) { ....