Skip to content

Commit

Permalink
Fix DC full power on reason and shutdown in PreCharge
Browse files Browse the repository at this point in the history
Signed-off-by: Cornelius Claussen <[email protected]>
  • Loading branch information
corneliusclaussen committed Feb 9, 2024
1 parent 3d4792c commit 45d7b0d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/EvseManager/Charger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 45d7b0d

Please sign in to comment.