From 45d7b0dde61d3bd0b33528dbf5637902c52a277f Mon Sep 17 00:00:00 2001 From: Cornelius Claussen Date: Fri, 9 Feb 2024 11:16:07 +0100 Subject: [PATCH] Fix DC full power on reason and shutdown in PreCharge Signed-off-by: Cornelius Claussen --- modules/EvseManager/Charger.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/EvseManager/Charger.cpp b/modules/EvseManager/Charger.cpp index 75b37512e..9e2b119f9 100644 --- a/modules/EvseManager/Charger.cpp +++ b/modules/EvseManager/Charger.cpp @@ -463,8 +463,9 @@ void Charger::run_state_machine() { } if (charge_mode == ChargeMode::DC) { - // FIXME: handle DC pause/resume here - // FIXME: handle DC no power available from Energy management + if (initialize_state) { + bsp->allow_power_on(true, types::evse_board_support::Reason::FullPowerCharging); + } } else { check_soft_over_current(); @@ -712,7 +713,7 @@ void Charger::process_cp_events_state(CPEvent cp_event) { iec_allow_close_contactor = true; } else if (cp_event == CPEvent::CarRequestedStopPower) { iec_allow_close_contactor = false; - // current_state = EvseState::StoppingCharging; + signal_dc_supply_off(); } break;