static int wait_done(aversive_dev_t* dev) { int is_done; for (is_done = 0; is_done == 0; ) { wait_abit(); aversive_is_traj_done(dev, &is_done); if (can_poll_bus(dev->can_dev) == -1) { lcd_string(3, 0, "[!] aversive_poll_bus"); return -1; } } return 0; }
int sit_for_inner(int num_chars) { if( input_pending != 0 ) return 0; if( term_is_terminal ) { theActiveView->do_dsp(); // Make the screen correct theActiveView->t_insert_mode( 0 ); } while( num_chars != 0 && input_pending == 0 ) { wait_abit(); num_chars--; } return 0; }