allow M114 to report negative positions correctly

This commit is contained in:
Michael Moon 2011-05-01 17:17:56 +10:00
parent be81a13584
commit 3e32a8f634
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ void process_gcode_command() {
// M113- extruder PWM // M113- extruder PWM
// M114- report XYZEF to host // M114- report XYZEF to host
case 114: case 114:
sersendf_P(PSTR("X:%lq,Y:%lq,Z:%lq,E:%lq,F:%ld"), current_position.X * UM_PER_STEP_X, current_position.Y * UM_PER_STEP_Y, current_position.Z * UM_PER_STEP_Z, current_position.E * UM_PER_STEP_E, current_position.F); sersendf_P(PSTR("X:%lq,Y:%lq,Z:%lq,E:%lq,F:%ld"), current_position.X * ((int32_t) UM_PER_STEP_X), current_position.Y * ((int32_t) UM_PER_STEP_Y), current_position.Z * ((int32_t) UM_PER_STEP_Z), current_position.E * ((int32_t) UM_PER_STEP_E), current_position.F);
// newline is sent from gcode_parse after we return // newline is sent from gcode_parse after we return
break; break;
// M115- capabilities string // M115- capabilities string