From: zer0 Date: Fri, 30 Apr 2010 19:44:45 +0000 (+0200) Subject: fix race on state machines X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=73d45a0214ee8e45bad26fbca673edc77a7656a2;p=aversive.git fix race on state machines --- 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 */