Skip to content
Snippets Groups Projects
Commit 2c69fb3d authored by Administrator's avatar Administrator
Browse files

note vis pyserial

change of timeout
parent fe0abda4
Branches
Tags
No related merge requests found
......@@ -39,8 +39,13 @@ class VendingMachine:
def await_prompt(self):
self.wfh.flush()
state = 1
timeout = 0.5
prefix = ''
s = ''
# mtearle - vending machine was dying wait for a response from
# the hardware, suspect it was missing characters
#
# fixed by migration to pyserial - but future good place to start
while True:
try:
s = self.rfh.read(1)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment