note vis pyserial
authorroot <root>
Sun, 6 Jan 2008 06:11:33 +0000 (06:11 +0000)
committerroot <root>
Sun, 6 Jan 2008 06:11:33 +0000 (06:11 +0000)
change of timeout

sql-edition/servers/VendingMachine.py

index 25d375b..d73eb4b 100644 (file)
@@ -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