Skip to content

Commit a441d0a

Browse files
authored
Merge pull request #137 from openUC2/mergemaster
Update mserial.py
2 parents 5d47002 + e51970e commit a441d0a

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)