From 73d45a0214ee8e45bad26fbca673edc77a7656a2 Mon Sep 17 00:00:00 2001 From: zer0 Date: Fri, 30 Apr 2010 21:44:45 +0200 Subject: [PATCH] fix race on state machines --- projects/microb2010/cobboard/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/microb2010/cobboard/state.c b/projects/microb2010/cobboard/state.c index 092d0de..86afce9 100644 --- a/projects/microb2010/cobboard/state.c +++ b/projects/microb2010/cobboard/state.c @@ -314,8 +314,8 @@ void state_machine(void) /* init */ if (INIT(state_mode)) { - state_mode = I2C_COBBOARD_MODE_HARVEST; state_init(); + state_mode = I2C_COBBOARD_MODE_HARVEST; } /* pack/deply spickles, enable/disable roller */ -- 2.39.5