Make M220 B / R a standard feature (#20355)
This commit is contained in:
parent
31337826a3
commit
978d93af88
@ -37,11 +37,9 @@
|
|||||||
*/
|
*/
|
||||||
void GcodeSuite::M220() {
|
void GcodeSuite::M220() {
|
||||||
|
|
||||||
#if HAS_PRUSA_MMU2
|
static int16_t backup_feedrate_percentage = 100;
|
||||||
static int16_t backup_feedrate_percentage = 100;
|
if (parser.seen('B')) backup_feedrate_percentage = feedrate_percentage;
|
||||||
if (parser.seen('B')) backup_feedrate_percentage = feedrate_percentage;
|
if (parser.seen('R')) feedrate_percentage = backup_feedrate_percentage;
|
||||||
if (parser.seen('R')) feedrate_percentage = backup_feedrate_percentage;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (parser.seenval('S')) feedrate_percentage = parser.value_int();
|
if (parser.seenval('S')) feedrate_percentage = parser.value_int();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user