* 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

@ -686,7 +686,13 @@ public:
*dp = 0; // null terminator
}
const uint8_t* getSelfIdPubKey() { return self_id.pub_key; }
const uint8_t* getSelfIdPubKey() override { return self_id.pub_key; }
void clearStats() override {
radio_driver.resetStats();
resetStats();
((SimpleMeshTables *)getTables())->resetStats();
}
void loop() {
mesh::Mesh::loop();