mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 19:42:08 +02:00
Add SMA Tripower to contactor allow writing
This commit is contained in:
parent
ea2ea2e590
commit
8663571579
1 changed files with 2 additions and 2 deletions
|
@ -90,9 +90,9 @@ void init_contactors() {
|
||||||
|
|
||||||
// Main functions
|
// Main functions
|
||||||
void handle_contactors() {
|
void handle_contactors() {
|
||||||
#ifdef BYD_SMA
|
#if defined(BYD_SMA) || defined(SMA_TRIPOWER_CAN)
|
||||||
datalayer.system.status.inverter_allows_contactor_closing = digitalRead(INVERTER_CONTACTOR_ENABLE_PIN);
|
datalayer.system.status.inverter_allows_contactor_closing = digitalRead(INVERTER_CONTACTOR_ENABLE_PIN);
|
||||||
#endif // BYD_SMA
|
#endif
|
||||||
|
|
||||||
#ifdef CONTACTOR_CONTROL_DOUBLE_BATTERY
|
#ifdef CONTACTOR_CONTROL_DOUBLE_BATTERY
|
||||||
handle_contactors_battery2();
|
handle_contactors_battery2();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue