Skip to content

Commit 20d3363

Browse files
authored
check hardware pahses vs chargemode phases (#2694)
1 parent 3dff064 commit 20d3363

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/control/chargepoint/chargepoint.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ def hw_bidi_capable(self) -> BidiState:
561561

562562
def set_phases(self, phases: int) -> int:
563563
charging_ev = self.data.set.charging_ev_data
564+
phases = min(phases, self.get_max_phase_hw())
564565

565566
if phases != self.data.get.phases_in_use:
566567
# Wenn noch kein Eintrag im Protokoll erstellt wurde, wurde noch nicht geladen und die Phase kann noch

0 commit comments

Comments
 (0)