mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
add PERIODIC BMS RESET Events
This commit is contained in:
parent
c4eae97cda
commit
b75d5fb20f
4 changed files with 106 additions and 106 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue