mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Revert "Change default state of bms_Status to INACTIVE and only switch to ACTIVE upon reception of SOC from battery."
This reverts commit f6c73e9481
.
This commit is contained in:
parent
57fbe69b14
commit
753b506068
26 changed files with 2 additions and 63 deletions
|
@ -249,11 +249,6 @@ void reset_all_events() {
|
|||
events.entries[i].MQTTpublished = false; // Not published by default
|
||||
}
|
||||
events.level = EVENT_LEVEL_INFO;
|
||||
|
||||
datalayer.battery.status.bms_status = INACTIVE;
|
||||
#ifdef DOUBLE_BATTERY
|
||||
datalayer.battery2.status.bms_status = INACTIVE;
|
||||
#endif
|
||||
update_bms_status();
|
||||
}
|
||||
|
||||
|
@ -502,6 +497,7 @@ static void update_bms_status(void) {
|
|||
case EVENT_LEVEL_INFO:
|
||||
case EVENT_LEVEL_WARNING:
|
||||
case EVENT_LEVEL_DEBUG:
|
||||
datalayer.battery.status.bms_status = ACTIVE;
|
||||
break;
|
||||
case EVENT_LEVEL_UPDATE:
|
||||
datalayer.battery.status.bms_status = UPDATING;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue