state_machine
[aversive.git] / projects / microb2010 / ballboard / state.c
index 08c104d..f9a5f8a 100644 (file)
@@ -156,8 +156,8 @@ void state_machine(void)
                switch (state_mode) {
 
                case INIT:
                switch (state_mode) {
 
                case INIT:
-                       state_mode = OFF;
                        state_init();
                        state_init();
+                       state_mode = OFF;
                        break;
 
                case OFF:
                        break;
 
                case OFF: