Skip to content

Commit

Permalink
Make M220 B / R a standard feature (MarlinFirmware#20355)
Browse files Browse the repository at this point in the history
  • Loading branch information
nb-rapidia authored and kpishere committed Feb 19, 2021
1 parent 6ec9ef2 commit 3a75cf8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Marlin/src/gcode/config/M220.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 3a75cf8

Please sign in to comment.