Skip to content

Commit e51970e

Browse files
committed
Update mserial.py
1 parent 7f3513a commit e51970e

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
@@ -514,7 +514,7 @@ def sendMessage(self, command, nResponses=1, timeout = 20):
514514
return "communication interrupted by timeout or reset: "+str(identifier) + " and code:"+str(self.commands[identifier])
515515
with self.lock:
516516
if identifier in self.responses:
517-
if len(self.responses[identifier])==nResponses:
517+
if len(self.responses[identifier])>=nResponses:
518518
returnMessage = self.responses[identifier]
519519
# remove the response from the list
520520
del self.responses[identifier]

0 commit comments

Comments
 (0)