Tweak extruder errors

This commit is contained in:
Scott Lahteine
2018-11-16 01:29:06 -06:00
parent 2d92f333f5
commit 7a075a5dc9
2 changed files with 4 additions and 7 deletions

View File

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