Fix M916-918 subcommands
This commit is contained in:
parent
be69ec5b32
commit
17778d1c2a
@ -106,10 +106,10 @@ void GcodeSuite::M916() {
|
|||||||
|
|
||||||
// turn the motor(s) both directions
|
// turn the motor(s) both directions
|
||||||
sprintf_P(gcode_string, PSTR("G0 %s%4.3f F%4.3f"), temp_axis_string, position_min, final_feedrate);
|
sprintf_P(gcode_string, PSTR("G0 %s%4.3f F%4.3f"), temp_axis_string, position_min, final_feedrate);
|
||||||
process_subcommands_now_P(gcode_string);
|
process_subcommands_now(gcode_string);
|
||||||
|
|
||||||
sprintf_P(gcode_string, PSTR("G0 %s%4.3f F%4.3f"), temp_axis_string, position_max, final_feedrate);
|
sprintf_P(gcode_string, PSTR("G0 %s%4.3f F%4.3f"), temp_axis_string, position_max, final_feedrate);
|
||||||
process_subcommands_now_P(gcode_string);
|
process_subcommands_now(gcode_string);
|
||||||
|
|
||||||
// get the status after the motors have stopped
|
// get the status after the motors have stopped
|
||||||
planner.synchronize();
|
planner.synchronize();
|
||||||
@ -226,10 +226,10 @@ void GcodeSuite::M917() {
|
|||||||
DEBUG_ECHOLNPAIR(" OCD threshold : ", (ocd_th_val + 1) * 375);
|
DEBUG_ECHOLNPAIR(" OCD threshold : ", (ocd_th_val + 1) * 375);
|
||||||
|
|
||||||
sprintf_P(gcode_string, PSTR("G0 %s%4.3f F%4.3f"), temp_axis_string, position_min, final_feedrate);
|
sprintf_P(gcode_string, PSTR("G0 %s%4.3f F%4.3f"), temp_axis_string, position_min, final_feedrate);
|
||||||
process_subcommands_now_P(gcode_string);
|
process_subcommands_now(gcode_string);
|
||||||
|
|
||||||
sprintf_P(gcode_string, PSTR("G0 %s%4.3f F%4.3f"), temp_axis_string, position_max, final_feedrate);
|
sprintf_P(gcode_string, PSTR("G0 %s%4.3f F%4.3f"), temp_axis_string, position_max, final_feedrate);
|
||||||
process_subcommands_now_P(gcode_string);
|
process_subcommands_now(gcode_string);
|
||||||
|
|
||||||
planner.synchronize();
|
planner.synchronize();
|
||||||
|
|
||||||
@ -518,10 +518,10 @@ void GcodeSuite::M918() {
|
|||||||
DEBUG_ECHOLNPAIR("...feedrate = ", current_feedrate);
|
DEBUG_ECHOLNPAIR("...feedrate = ", current_feedrate);
|
||||||
|
|
||||||
sprintf_P(gcode_string, PSTR("G0 %s%4.3f F%4.3f"), temp_axis_string, position_min, current_feedrate);
|
sprintf_P(gcode_string, PSTR("G0 %s%4.3f F%4.3f"), temp_axis_string, position_min, current_feedrate);
|
||||||
process_subcommands_now_P(gcode_string);
|
process_subcommands_now(gcode_string);
|
||||||
|
|
||||||
sprintf_P(gcode_string, PSTR("G0 %s%4.3f F%4.3f"), temp_axis_string, position_max, current_feedrate);
|
sprintf_P(gcode_string, PSTR("G0 %s%4.3f F%4.3f"), temp_axis_string, position_max, current_feedrate);
|
||||||
process_subcommands_now_P(gcode_string);
|
process_subcommands_now(gcode_string);
|
||||||
|
|
||||||
planner.synchronize();
|
planner.synchronize();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user