]> git.droids-corp.org - aversive.git/blobdiff - projects/microb2010/cobboard/state.c
cup1
[aversive.git] / projects / microb2010 / cobboard / state.c
index 2d652082bf9e427de6b7810abff647064315f456..535829f1324376aa2a7067df282113d8adbde713 100644 (file)
@@ -294,6 +294,9 @@ static void state_do_harvest(uint8_t side)
                shovel_down();
                time_wait_ms(250);
                shovel_up();
                shovel_down();
                time_wait_ms(250);
                shovel_up();
+               /* if eject command is received, force exit */
+               if (EJECT(state_mode))
+                       return;
        }
 
        state_debug_wait_key_pressed();
        }
 
        state_debug_wait_key_pressed();