mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 20:18:52 +00:00
Shorten gcode_M221 yet function the same
This commit is contained in:
parent
c0e791dbe9
commit
17c23bbaf3
@ -4666,13 +4666,8 @@ inline void gcode_M220() {
|
||||
inline void gcode_M221() {
|
||||
if (code_seen('S')) {
|
||||
int sval = code_value();
|
||||
if (code_seen('T')) {
|
||||
if (setTargetedHotend(221)) return;
|
||||
extruder_multiplier[target_extruder] = sval;
|
||||
}
|
||||
else {
|
||||
extruder_multiplier[active_extruder] = sval;
|
||||
}
|
||||
if (setTargetedHotend(221)) return;
|
||||
extruder_multiplier[target_extruder] = sval;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user