Skip to content

Commit

Permalink
Fix EvManager crash if not iso 15118 car was connected (EVerest#839)
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass authored Aug 22, 2024
1 parent a19bce9 commit bc76d84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/EvManager/main/car_simulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ void CarSimulation::state_machine() {
// Wait for physical plugin (ev BSP sees state A on CP and not Disconnected)

sim_data.slac_state = "UNMATCHED";
r_ev[0]->call_stop_charging();
if (!r_ev.empty()) {
r_ev[0]->call_stop_charging();
}
}
break;
case SimState::PLUGGED_IN:
Expand Down

0 comments on commit bc76d84

Please sign in to comment.