From: Ralf Jung Date: Thu, 10 Oct 2013 13:23:00 +0000 (+0200) Subject: Fix old_pins (though it is not used) X-Git-Url: https://git.ralfj.de/saartuer.git/commitdiff_plain/c3f869a3599a8d58dd4c6f12031e67eec9654de5?hp=-c Fix old_pins (though it is not used) --- c3f869a3599a8d58dd4c6f12031e67eec9654de5 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