From 0c6fe1fc077d47c456b31c74ed1241885f2f654d Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 17 Sep 2023 12:44:41 +0300 Subject: [PATCH] Contactor fix --- Software/TESLA-MODEL-3-BATTERY.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Software/TESLA-MODEL-3-BATTERY.cpp b/Software/TESLA-MODEL-3-BATTERY.cpp index 8a41722f..3fa724fe 100644 --- a/Software/TESLA-MODEL-3-BATTERY.cpp +++ b/Software/TESLA-MODEL-3-BATTERY.cpp @@ -364,14 +364,11 @@ the first, for a few cycles, then stop all messages which causes the contactor ESP32Can.CANWriteFrame(&TESLA_221_1); ESP32Can.CANWriteFrame(&TESLA_221_2); } - else if(bms_status == FAULT){ + else{ //bms_status == FAULT if(send221still > 0){ ESP32Can.CANWriteFrame(&TESLA_221_1); send221still--; } - } - else{ - //Updating or some other state we dont use } } }