🚸 Refine stepper-driver-related G-codes (#23372)

This commit is contained in:
Scott Lahteine
2021-12-28 05:43:10 -06:00
committed by Scott Lahteine
parent 56adbc3ebf
commit 99c237e05e
8 changed files with 171 additions and 180 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);
@@ -159,7 +160,7 @@ int8_t GcodeSuite::get_target_e_stepper_from_command(const int8_t dval/*=-1*/) {
}
/**
* Set XYZIJKE destination and feedrate from the current GCode command
* Set XYZ...E destination and feedrate from the current GCode command
*
* - Set destination from included axis codes
* - Set to current for missing axis codes