🐛 Fix "no T param" handling

This commit is contained in:
Scott Lahteine 2021-12-31 01:43:25 -06:00
parent c1410020ab
commit ff46d7cae2
5 changed files with 5 additions and 4 deletions

View file

@ -148,6 +148,7 @@ int8_t GcodeSuite::get_target_extruder_from_command() {
int8_t GcodeSuite::get_target_e_stepper_from_command(const int8_t dval/*=-1*/) {
const int8_t e = parser.intval('T', dval);
if (WITHIN(e, 0, E_STEPPERS - 1)) return e;
if (dval == -2) return dval;
SERIAL_ECHO_START();
SERIAL_CHAR('M'); SERIAL_ECHO(parser.codenum);