Tweak extruder errors

2.0.x
Scott Lahteine 7 years ago
parent 2d92f333f5
commit 7a075a5dc9

@ -65,9 +65,8 @@ int8_t GcodeSuite::get_target_extruder_from_command() {
const int8_t e = parser.value_byte(); const int8_t e = parser.value_byte();
if (e >= EXTRUDERS) { if (e >= EXTRUDERS) {
SERIAL_ECHO_START(); SERIAL_ECHO_START();
SERIAL_CHAR('M'); SERIAL_CHAR('M'); SERIAL_ECHO(parser.codenum);
SERIAL_ECHO(parser.codenum); SERIAL_ECHOLNPAIR(" " MSG_INVALID_EXTRUDER " ", int(e));
SERIAL_ECHOLNPAIR(" " MSG_INVALID_EXTRUDER " ", e);
return -1; return -1;
} }
return e; return e;

@ -417,10 +417,8 @@
inline void invalid_extruder_error(const uint8_t e) { inline void invalid_extruder_error(const uint8_t e) {
SERIAL_ECHO_START(); SERIAL_ECHO_START();
SERIAL_CHAR('T'); SERIAL_CHAR('T'); SERIAL_ECHO(int(e));
SERIAL_ECHO_F(e, DEC); SERIAL_CHAR(' '); SERIAL_ECHOLNPGM(MSG_INVALID_EXTRUDER);
SERIAL_CHAR(' ');
SERIAL_ECHOLNPGM(MSG_INVALID_EXTRUDER);
} }
#if ENABLED(DUAL_X_CARRIAGE) #if ENABLED(DUAL_X_CARRIAGE)

Loading…
Cancel
Save