git.ucc.asn.au
/
zanchey
/
dispense2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1915f3f
)
note vis pyserial
author
root
<root>
Sun, 6 Jan 2008 06:11:33 +0000
(06:11 +0000)
committer
root
<root>
Sun, 6 Jan 2008 06:11:33 +0000
(06:11 +0000)
change of timeout
sql-edition/servers/VendingMachine.py
patch
|
blob
|
history
diff --git
a/sql-edition/servers/VendingMachine.py
b/sql-edition/servers/VendingMachine.py
index
25d375b
..
d73eb4b
100644
(file)
--- a/
sql-edition/servers/VendingMachine.py
+++ b/
sql-edition/servers/VendingMachine.py
@@
-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)
UCC
git Repository :: git.ucc.asn.au