@ -4749,19 +4749,18 @@ inline void gcode_M226() {
if ( servo_index > = 0 & & servo_index < NUM_SERVOS )
servo [ servo_index ] . move ( servo_position ) ;
else {
SERIAL_E CHO _START;
SERIAL_E CHO ( " Servo " ) ;
SERIAL_E CHO ( servo_index ) ;
SERIAL_E CHO LN( " out of range " ) ;
SERIAL_E RROR _START;
SERIAL_E RROR ( " Servo " ) ;
SERIAL_E RROR ( servo_index ) ;
SERIAL_E RROR LN( " out of range " ) ;
}
}
else if ( servo_index > = 0 ) {
SERIAL_PROTOCOL ( MSG_OK ) ;
SERIAL_PROTOCOL ( " Servo " ) ;
SERIAL_PROTOCOL ( servo_index ) ;
SERIAL_PROTOCOL ( " : " ) ;
SERIAL_PROTOCOL ( servo [ servo_index ] . read ( ) ) ;
SERIAL_EOL ;
SERIAL_ECHO_START ;
SERIAL_ECHO ( " Servo " ) ;
SERIAL_ECHO ( servo_index ) ;
SERIAL_ECHO ( " : " ) ;
SERIAL_ECHOLN ( servo [ servo_index ] . read ( ) ) ;
}
}
@ -4812,27 +4811,27 @@ inline void gcode_M226() {
# endif
updatePID ( ) ;
SERIAL_ PROTOCOL( MSG_OK ) ;
SERIAL_ ECHO_START ;
# if ENABLED(PID_PARAMS_PER_EXTRUDER)
SERIAL_ PROTOCOL ( " e: " ) ; // specify extruder in serial output
SERIAL_ PROTOCOL ( e ) ;
SERIAL_ ECHO ( " e: " ) ; // specify extruder in serial output
SERIAL_ ECHO ( e ) ;
# endif // PID_PARAMS_PER_EXTRUDER
SERIAL_ PROTOCOL ( " p: " ) ;
SERIAL_ PROTOCOL ( PID_PARAM ( Kp , e ) ) ;
SERIAL_ PROTOCOL ( " i: " ) ;
SERIAL_ PROTOCOL ( unscalePID_i ( PID_PARAM ( Ki , e ) ) ) ;
SERIAL_ PROTOCOL ( " d: " ) ;
SERIAL_ PROTOCOL ( unscalePID_d ( PID_PARAM ( Kd , e ) ) ) ;
SERIAL_ ECHO ( " p: " ) ;
SERIAL_ ECHO ( PID_PARAM ( Kp , e ) ) ;
SERIAL_ ECHO ( " i: " ) ;
SERIAL_ ECHO ( unscalePID_i ( PID_PARAM ( Ki , e ) ) ) ;
SERIAL_ ECHO ( " d: " ) ;
SERIAL_ ECHO ( unscalePID_d ( PID_PARAM ( Kd , e ) ) ) ;
# if ENABLED(PID_ADD_EXTRUSION_RATE)
SERIAL_ PROTOCOL ( " c: " ) ;
SERIAL_ ECHO ( " c: " ) ;
//Kc does not have scaling applied above, or in resetting defaults
SERIAL_ PROTOCOL ( PID_PARAM ( Kc , e ) ) ;
SERIAL_ ECHO ( PID_PARAM ( Kc , e ) ) ;
# endif
SERIAL_EOL ;
}
else {
SERIAL_E CHO _START;
SERIAL_E CHO LN( MSG_INVALID_EXTRUDER ) ;
SERIAL_E RROR _START;
SERIAL_E RROR LN( MSG_INVALID_EXTRUDER ) ;
}
}
@ -4846,14 +4845,13 @@ inline void gcode_M226() {
if ( code_seen ( ' D ' ) ) bedKd = scalePID_d ( code_value ( ) ) ;
updatePID ( ) ;
SERIAL_PROTOCOL ( MSG_OK ) ;
SERIAL_PROTOCOL ( " p: " ) ;
SERIAL_PROTOCOL ( bedKp ) ;
SERIAL_PROTOCOL ( " i: " ) ;
SERIAL_PROTOCOL ( unscalePID_i ( bedKi ) ) ;
SERIAL_PROTOCOL ( " d: " ) ;
SERIAL_PROTOCOL ( unscalePID_d ( bedKd ) ) ;
SERIAL_EOL ;
SERIAL_ECHO_START ;
SERIAL_ECHO ( " p: " ) ;
SERIAL_ECHO ( bedKp ) ;
SERIAL_ECHO ( " i: " ) ;
SERIAL_ECHO ( unscalePID_i ( bedKi ) ) ;
SERIAL_ECHO ( " d: " ) ;
SERIAL_ECHOLN ( unscalePID_d ( bedKd ) ) ;
}
# endif // PIDTEMPBED
@ -5285,7 +5283,7 @@ inline void gcode_M503() {
float value = code_value ( ) ;
if ( Z_PROBE_OFFSET_RANGE_MIN < = value & & value < = Z_PROBE_OFFSET_RANGE_MAX ) {
zprobe_zoffset = value ;
SERIAL_ECHO PGM( MSG_OK ) ;
SERIAL_ECHO ( zprobe_zoffset ) ;
}
else {
SERIAL_ECHOPGM ( MSG_Z_MIN ) ;