🚸 Default T0 for M569, M906, M913 (#23020)
This commit is contained in:
parent
930cb7c317
commit
73875cf9cc
6 changed files with 10 additions and 9 deletions
|
|
@ -137,11 +137,12 @@ int8_t GcodeSuite::get_target_extruder_from_command() {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get the target e stepper from the T parameter
|
||||
* Return -1 if the T parameter is out of range or unspecified
|
||||
* Get the target E stepper from the 'T' parameter.
|
||||
* If there is no 'T' parameter then dval will be substituted.
|
||||
* Returns -1 if the resulting E stepper index is out of range.
|
||||
*/
|
||||
int8_t GcodeSuite::get_target_e_stepper_from_command() {
|
||||
const int8_t e = parser.intval('T', -1);
|
||||
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;
|
||||
|
||||
SERIAL_ECHO_START();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue