It didn't reset 'lastrun', so it didn't really work.
control['reset'] = [
# turning power off just kills everything!!!
+ AtAction(at='_ORESET', critical = False),
PowerAction('reopen'),
#PowerAction('off'),
AtAction(at='E0', timeout=30000),
log("Force state to", state);
self.cancel_timeout()
self.nextstate = []
+ n = len(control[state])
+ self.lastrun = n * [0]
self.gstate = state
def advance(self):