Skip to content

Commit be9ed25

Browse files
authored
Merge pull request #2835 from LKuemmel/fix_socket
fix socket
2 parents 216a839 + a2f01c1 commit be9ed25

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • packages/modules/internal_chargepoint_handler

packages/modules/internal_chargepoint_handler/socket.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ def set_current(self, current: float) -> None:
6363
with self.client_error_context:
6464
actor = ActorState(GPIO.input(19))
6565

66-
if actor == ActorState.CLOSED:
67-
if current == self.set_current_evse:
68-
return
69-
else:
66+
if actor == ActorState.OPENED:
7067
current = 0
7168
super().set_current(min(current, self.socket_max_current))
7269
if actor == ActorState.OPENED and self.chargepoint_state.plug_state is True:

0 commit comments

Comments
 (0)