From c3f869a3599a8d58dd4c6f12031e67eec9654de5 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 10 Oct 2013 15:23:00 +0200 Subject: [PATCH 1/1] Fix old_pins (though it is not used) --- statemachine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statemachine.py b/statemachine.py index fe92682..1fa66b9 100644 --- a/statemachine.py +++ b/statemachine.py @@ -199,10 +199,10 @@ class StateMachine(): def _callback(self, cmd, arg=None): # update pins if cmd == StateMachine.CMD_PINS: - self.old_pins = self.pins self.pins = arg # handle stuff newstate = self.current_state.handle_event(cmd,arg) # returns None or an instance of the new state + self.old_pins = self.pins # FIXME not used? while newstate is not None: logger.info("StateMachine: new state = %s" % newstate.__class__.__name__) self.current_state = newstate -- 2.30.2