+ if (WAIT_COND_OR_TIMEOUT(state_cob_inside(), 750) == 0) {
+ if (state_no_cob_inside()) {
+ printf_P(PSTR("NO COB\r\n"));
+ return;
+ }
+ printf_P(PSTR("BAD COB - press a key\r\n"));
+ while(!cmdline_keypressed());
+ }
+
+ /* cob is inside, switch off roller */
+ cobroller_off(side);
+ cob_count ++;
+
+ /* last cob, nothing to do */
+ if (cob_count == 5)
+ return;