* CommonCLI: added "clear stats" command

This commit is contained in:
Scott Powell 2025-05-13 18:12:58 +10:00
parent 177dd90ca1
commit 805ca7b900
9 changed files with 29 additions and 2 deletions

View file

@ -169,6 +169,9 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
checkAdvertInterval();
savePrefs();
sprintf(reply, "password now: %s", _prefs->password); // echo back just to let admin know for sure!!
} else if (memcmp(command, "clear stats", 11) == 0) {
_callbacks->clearStats();
strcpy(reply, "(OK - stats reset)");
} else if (memcmp(command, "get ", 4) == 0) {
const char* config = &command[4];
if (memcmp(config, "af", 2) == 0) {