Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/control/chargepoint/chargepoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ def initiate_control_pilot_interruption(self):
# Unterstützt der Ladepunkt die CP-Unterbrechung und benötigt das Auto eine CP-Unterbrechung?
if charging_ev.ev_template.data.control_pilot_interruption:
if self.data.config.control_pilot_interruption_hw:
# Wird die Ladung gestartet?
if self.data.set.current_prev == 0 and self.data.set.current != 0:
# Wird die Ladung gestartet? (nicht nach Phasenumschaltung, da diese bereits CP umschaltet)
if (self.data.set.current_prev == 0 and self.data.set.current != 0 and
self.data.control_parameter.state != ChargepointState.WAIT_FOR_USING_PHASES):
# Die CP-Unterbrechung erfolgt in Threads, da diese länger als ein Zyklus dauert.
if thread_handler(Thread(
target=self.chargepoint_module.interrupt_cp,
Expand Down