Add SMA Tripower to contactor allow writing

This commit is contained in:
Daniel Öster 2024-12-28 14:58:47 +03:00
parent ea2ea2e590
commit 8663571579

View file

@ -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();