buzz twice to give users more time
authorRalf Jung <post@ralfj.de>
Wed, 2 Apr 2014 17:30:16 +0000 (19:30 +0200)
committerRalf Jung <post@ralfj.de>
Wed, 2 Apr 2014 17:30:16 +0000 (19:30 +0200)
statemachine.py

index cb1e4c86b156c94cc15aed4cab418d7345949291..a5e52f69b9bbe522ef839a3f98b23158116ad25a 100644 (file)
@@ -95,6 +95,8 @@ class StateMachine():
                def handle_pins_event(self):
                        pass # one needn't implement this
                def handle_buzz_event(self,arg): # this shouldn't be overwritten
+                       # Buzz twice to give users more time to run ;-)
+                       self.actor().act(Actor.CMD_BUZZ)
                        self.actor().act(Actor.CMD_BUZZ)
                        arg("200 okay: buzz executed")
                def handle_cmd_unlock_event(self,arg):