diff --git a/sonoff/_changelog.ino b/sonoff/_changelog.ino index 22b29098b..4de80cebe 100644 --- a/sonoff/_changelog.ino +++ b/sonoff/_changelog.ino @@ -1,6 +1,7 @@ /*********************************************************************************************\ * 6.6.0.10 20190905 * Redesign Tuya support by Shantur Rathore (#6353) + * Add command Reset 99 to reset bootcount to zero (#684, #6351) * * 6.6.0.9 20190828 * Change theoretical baudrate range to 300..19660500 bps in 300 increments (#6294) diff --git a/sonoff/support_command.ino b/sonoff/support_command.ino index 41b4cfe1d..a1bedea89 100644 --- a/sonoff/support_command.ino +++ b/sonoff/support_command.ino @@ -1269,6 +1269,10 @@ void CmndReset(void) restart_flag = 210 + XdrvMailbox.payload; Response_P(PSTR("{\"" D_CMND_RESET "\":\"" D_JSON_ERASE ", " D_JSON_RESET_AND_RESTARTING "\"}")); break; + case 99: + Settings.bootcount = 0; + ResponseCmndDone(); + break; default: ResponseCmndChar(D_JSON_ONE_TO_RESET); }