Skip to content

Commit 3844a8c

Browse files
committed
Update mserial.py
1 parent 56d2d52 commit 3844a8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

uc2rest/mserial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def _process_commands(self):
317317
# if we have a problem with the serial connection, we need to reconnect
318318
if nFailedCommands>5:
319319
self._logger.debug("Too many failed commands, disconnecting ...")
320-
return # TODO: this does not work, the serial lock is aquired and never released - race condition?
320+
break # TODO: this does not work, the serial lock is aquired and never released - race condition?
321321
for i in range(4):
322322
nFailedCommands=0
323323
if self.reconnect():

0 commit comments

Comments
 (0)