Skip to content

Commit

Permalink
charge_manager: Use charge_mode_pv for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrbt committed Jan 13, 2025
1 parent 14cc673 commit e22e866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/src/modules/charge_manager/current_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ static void stage_5(StageContext &sc) {

// Only switch from one to three phase if there is still current available on all phases except the P1 phase of this charger: P1 is used by this charger anyway.
Cost check_phase{
((state->charge_mode & ChargeMode::PV) != 0 ? (CHECK_IMPROVEMENT_ALL_PHASE | check_min) : 0),
(state->charge_mode_pv ?(CHECK_IMPROVEMENT_ALL_PHASE | check_min) : 0),
(old_factors.l1 > 0 ? 0 : CHECK_IMPROVEMENT_ALL_PHASE) | CHECK_MIN_WINDOW_ENABLE,
(old_factors.l2 > 0 ? 0 : CHECK_IMPROVEMENT_ALL_PHASE) | CHECK_MIN_WINDOW_ENABLE,
(old_factors.l3 > 0 ? 0 : CHECK_IMPROVEMENT_ALL_PHASE) | CHECK_MIN_WINDOW_ENABLE
Expand Down

0 comments on commit e22e866

Please sign in to comment.