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 tharts committed Jan 6, 2021
1 parent 76ad2b4 commit f00a77f
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 f00a77f

Please sign in to comment.