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