* CommonCLI: added "clear stats" command

This commit is contained in:
Scott Powell committed 2025-05-13 18:12:58 +10:00
1 parent 16df8c33a2
commit 2fef457f32
9 files changed
+29 -2

No files matched your search

+3
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) {