static stat_t _exec_dwell(mpBuf_t *bf) { // st_prep_dwell((uint32_t)(bf->gm.move_time * 1000000));// convert seconds to uSec st_prep_dwell((uint32_t)(bf->gm.move_time));// convert seconds to uSec if (mp_free_run_buffer()) cm_cycle_end(); // free buffer & perform cycle_end if planner is empty return (STAT_OK); }
static stat_t _exec_dwell(mpBuf_t *bf) { if (bf->move_state == MOVE_STATE_NEW) { st_prep_dwell((uint32_t)(bf->time * 1000000));// convert seconds to uSec bf->move_state = MOVE_STATE_RUN; } return (STAT_OK); }