aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-03 19:53:13 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-03 19:53:13 +0100
commit85a9ac1c379b80eff9ce8e42086fb463ae89e565 (patch)
treeef4ec527a17f05b6500d7c7bd9ed8267e19a7249
parentd9a1643b1ad937259c6ebebd43ce3101c3e2b8f6 (diff)
downloadglutte-o-matic-85a9ac1c379b80eff9ce8e42086fb463ae89e565.tar.gz
glutte-o-matic-85a9ac1c379b80eff9ce8e42086fb463ae89e565.tar.bz2
glutte-o-matic-85a9ac1c379b80eff9ce8e42086fb463ae89e565.zip
Set timestamp for first state
-rw-r--r--src/fsm/src/fsm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fsm/src/fsm.c b/src/fsm/src/fsm.c
index a6d2bcb..08d3c5f 100644
--- a/src/fsm/src/fsm.c
+++ b/src/fsm/src/fsm.c
@@ -40,6 +40,7 @@ void fsm_init() {
memset(&fsm_out, 0, sizeof(fsm_out));
memset(timestamp_state, 0, _NUM_FSM_STATES * sizeof(*timestamp_state));
+ timestamp_state[FSM_OISIF] = timestamp_now();
current_state = FSM_OISIF;
}