mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
update bms-reset if statement to include a ntp offset
This commit is contained in:
parent
147173bddd
commit
eadb48bfa9
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ void handle_BMSpower() {
|
|||
|
||||
#ifdef PERIODIC_BMS_RESET
|
||||
// Check if 24 hours have passed since the last power removal
|
||||
if (currentTime - lastPowerRemovalTime >= powerRemovalInterval) {
|
||||
if ((currentTime + bmsResetTimeOffset) - lastPowerRemovalTime >= powerRemovalInterval) {
|
||||
start_bms_reset();
|
||||
}
|
||||
#endif //PERIODIC_BMS_RESET
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue