From: Bernard Blackham Date: Sun, 27 Jun 2004 11:11:00 +0000 (+0000) Subject: Silence bug in ROM fixed. X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f581ca4aaf52ec51084e27672717c2bd08e85dbb;p=zanchey%2Fdispense2.git Silence bug in ROM fixed. --- diff --git a/sql-edition/servers/VendingMachine.py b/sql-edition/servers/VendingMachine.py index dcafac4..e242df8 100644 --- a/sql-edition/servers/VendingMachine.py +++ b/sql-edition/servers/VendingMachine.py @@ -131,8 +131,7 @@ class VendingMachine: msg += '%02x'%duration self.wfh.write(msg+'\n') (code, string) = self.get_response() - # FIXME: workaround a bug in rom W. should be just: return (code == '500', code, string) - return (code == '500' or code == '501', code, string) + return (code == '501', code, string) def display(self, string): if len(string) > 10: