mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 12:00:13 +02:00
Update datalayer DISCONNECTED state when contactor control opens contactors (#812)
This commit is contained in:
parent
417a4aa291
commit
8886e86a14
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@ void handle_contactors() {
|
|||
set(PRECHARGE_PIN, OFF);
|
||||
set(NEGATIVE_CONTACTOR_PIN, OFF, PWM_OFF_DUTY);
|
||||
set(POSITIVE_CONTACTOR_PIN, OFF, PWM_OFF_DUTY);
|
||||
datalayer.system.status.contactors_engaged = false;
|
||||
|
||||
if (datalayer.system.status.battery_allows_contactor_closing &&
|
||||
datalayer.system.status.inverter_allows_contactor_closing && !datalayer.system.settings.equipment_stop_active) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue