From: Mark Tearle Date: Sun, 12 Dec 2004 06:35:26 +0000 (+0000) Subject: fixing door logic X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=d3c53491245235c69c17850b4d9c1aa768aed44f;p=zanchey%2Fdispense2.git fixing door logic --- diff --git a/sql-edition/servers/VendingMachine.py b/sql-edition/servers/VendingMachine.py index d7e7a8f..709b90f 100644 --- a/sql-edition/servers/VendingMachine.py +++ b/sql-edition/servers/VendingMachine.py @@ -88,9 +88,9 @@ class VendingMachine: def handle_event(self, code, text): if code == '400': - self.events.append((DOOR, 0)) - elif code == '401': self.events.append((DOOR, 1)) + elif code == '401': + self.events.append((DOOR, 0)) elif code == '610': self.events.append((SWITCH, None)) self.interpret_switches(text)