Skip to content

Commit

Permalink
Contactor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dalathegreat committed Sep 17, 2023
1 parent 1bf651a commit 0c6fe1f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Software/TESLA-MODEL-3-BATTERY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

0 comments on commit 0c6fe1f

Please sign in to comment.