projects
/
saartuer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4f9482a
)
Remove the exception-throwing test...
author
Ralf Jung
<post@ralfj.de>
Mon, 14 Oct 2013 19:04:05 +0000
(21:04 +0200)
committer
Ralf Jung
<post@ralfj.de>
Mon, 14 Oct 2013 19:04:05 +0000
(21:04 +0200)
statemachine.py
patch
|
blob
|
history
diff --git
a/statemachine.py
b/statemachine.py
index 07d6574ff7dd601396669640f8a9dd62eed07543..893287a53237351f7c290d8b3c07b1adb36f6e7c 100644
(file)
--- a/
statemachine.py
+++ b/
statemachine.py
@@
-102,7
+102,7
@@
class StateMachine():
def handle_pins_event(self):
super().handle_pins_event()
pins = self.pins()
def handle_pins_event(self):
super().handle_pins_event()
pins = self.pins()
- if pins.door_locked is None or pins.door_closed is None or pins.space_
d
active is None or pins.bell_ringing is None:
+ if pins.door_locked is None or pins.door_closed is None or pins.space_active is None or pins.bell_ringing is None:
return None # wait till we have all sensors non-None
if pins.door_locked:
return StateMachine.StateZu(self.state_machine)
return None # wait till we have all sensors non-None
if pins.door_locked:
return StateMachine.StateZu(self.state_machine)