Skip to content

Commit 6f1ce46

Browse files
fixed fsm.c
1 parent bfed063 commit 6f1ce46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fsm_err_t fsm_init(fsm_t *const me, int init_state, fsm_time_t get_ms) {
6464

6565
/* Set default values */
6666
me->current_state = init_state;
67-
me->prev_state = me->current_state;
67+
me->prev_state = me->current_state - 1;
6868
me->actions_list.actions = NULL;
6969
me->actions_list.len = 0;
7070
me->trans_list.trans = NULL;

0 commit comments

Comments
 (0)