reset
This commit is contained in:
@ -111,7 +111,7 @@ void eepromSpiTxCpltCallback(SPI_HandleTypeDef *hspi) {
|
||||
|
||||
}
|
||||
|
||||
static void eepromHourlyUpdateDeviceStats(void *handle) {
|
||||
void eepromHourlyUpdateDeviceStats(void *handle) {
|
||||
deviceStats.s.totalRunningHours += 1;
|
||||
|
||||
logMsg("eeHUDS, about to write updated device stats");
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include <cmdHelper.h>
|
||||
#include <logger.h>
|
||||
#include <PontCoopScheduler.h>
|
||||
|
||||
#include <eeprom.h>
|
||||
|
||||
@ -29,6 +30,7 @@ static bool globalStatsCmd(uint8_t argc, char **args) {
|
||||
static bool resetStatsCmd(uint8_t argc, char **args) {
|
||||
t_deviceStats *deviceStats = getGlobalDeviceStats();
|
||||
deviceStats->totalWatchdogResets = 0;
|
||||
schAdd(eepromHourlyUpdateDeviceStats, NULL, 1, 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user