feat(Telemetry,FileManager,LoggingHandler): QA-to-shipping stats reset — telemetry.reset_boot_data + logs.clear

Console wants a "reset device stats before shipping" button for staff to
clear QA-bench data (test reboots, debug log spam) without wiping actual
device configuration. telemetry.reset_strikes and telemetry.reset_metrics
already covered bell strikes and runtime/playback counters — this adds the
two gaps: lifetime boot count + SD boot history, and SD debug logs.

Deliberately does not touch FirmwareValidator's NVS namespace (rollback
safety state, not history) or device identity NVS (serial/hw_family).

Verified: pio run on all four board variants.
This commit is contained in:
2026-07-17 14:14:55 +03:00
parent 959cb77d81
commit f41332a771
11 changed files with 172 additions and 2 deletions
@@ -30,4 +30,5 @@ private:
CommandResult handleResetMetrics(const CommandEnvelope& e);
CommandResult handleGetBootHistory(const CommandEnvelope& e);
CommandResult handleGetDiagnostics(const CommandEnvelope& e);
CommandResult handleResetBootData(const CommandEnvelope& e);
};