Funkiness.
[zanchey/dispense2.git] / sql-edition / servers / VendingMachine.py
index dcafac4..edc593c 100644 (file)
@@ -1,5 +1,5 @@
 # vim:ts=4
-import re, pg
+import re
 from CRC import do_crc
 from select import select
 
@@ -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:

UCC git Repository :: git.ucc.asn.au