add PERIODIC BMS RESET Events

This commit is contained in:
laughingguffly 2025-02-08 14:40:09 +00:00
parent c4eae97cda
commit b75d5fb20f
4 changed files with 106 additions and 106 deletions

View file

@ -130,9 +130,9 @@ void setup() {
#ifdef PERIODIC_BMS_RESET_AT
bmsResetTimeOffset = getTimeOffsetfromNowUntil(PERIODIC_BMS_RESET_AT);
if (bmsResetTimeOffset == 0) {
set_event(EVENT_BMS_RESET_AT_INIT_FAILED, 0);
set_event(EVENT_PERIODIC_BMS_RESET_AT_INIT_FAILED, 0);
} else {
set_event(EVENT_BMS_RESET_AT_INIT_SUCCESS, 0);
set_event(EVENT_PERIODIC_BMS_RESET_AT_INIT_SUCCESS, 0);
}
#endif
}