🐛 Fix "no T param" handling
This commit is contained in:
parent
c1410020ab
commit
ff46d7cae2
5 changed files with 5 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue