diff options
| author | Selene ToyKeeper | 2017-08-27 19:40:40 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-08-27 19:40:40 -0600 |
| commit | dce497bf15799133bf336ab46c3e39d7b0d92839 (patch) | |
| tree | 6a39b7912f046af72563c93344376e3830fe810a /spaghetti-monster/fsm-states.h | |
| parent | Reduced ROM size, simplified logic, made sure discrete ramp won't overflow ou... (diff) | |
| download | anduril-dce497bf15799133bf336ab46c3e39d7b0d92839.tar.gz anduril-dce497bf15799133bf336ab46c3e39d7b0d92839.tar.bz2 anduril-dce497bf15799133bf336ab46c3e39d7b0d92839.zip | |
Ramp config mode actually works now...
Added EV_reenter_state event to indicate an obscuring state was popped off the stack
and the underlying one is now on top again.
Diffstat (limited to 'spaghetti-monster/fsm-states.h')
| -rw-r--r-- | spaghetti-monster/fsm-states.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spaghetti-monster/fsm-states.h b/spaghetti-monster/fsm-states.h index 0daf915..f92abba 100644 --- a/spaghetti-monster/fsm-states.h +++ b/spaghetti-monster/fsm-states.h @@ -35,7 +35,8 @@ volatile StatePtr current_state; StatePtr state_stack[STATE_STACK_SIZE]; uint8_t state_stack_len = 0; -void _set_state(StatePtr new_state, uint16_t arg); +void _set_state(StatePtr new_state, uint16_t arg, + EventPtr exit_event, EventPtr enter_event); int8_t push_state(StatePtr new_state, uint16_t arg); StatePtr pop_state(); uint8_t set_state(StatePtr new_state, uint16_t arg); |
