Browse Source

Make M220 B / R a standard feature (#20355)

vanilla_fb_2.0.x
nb-rapidia 4 years ago
committed by GitHub
parent
commit
978d93af88
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      Marlin/src/gcode/config/M220.cpp

8
Marlin/src/gcode/config/M220.cpp

@ -37,11 +37,9 @@
*/
void GcodeSuite::M220() {
#if HAS_PRUSA_MMU2
static int16_t backup_feedrate_percentage = 100;
if (parser.seen('B')) backup_feedrate_percentage = feedrate_percentage;
if (parser.seen('R')) feedrate_percentage = backup_feedrate_percentage;
#endif
static int16_t backup_feedrate_percentage = 100;
if (parser.seen('B')) backup_feedrate_percentage = feedrate_percentage;
if (parser.seen('R')) feedrate_percentage = backup_feedrate_percentage;
if (parser.seenval('S')) feedrate_percentage = parser.value_int();

Loading…
Cancel
Save