Browse Source

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

nb-rapidia 4 years ago
parent
commit
978d93af88
No account linked to committer's email address
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      Marlin/src/gcode/config/M220.cpp

+ 3
- 5
Marlin/src/gcode/config/M220.cpp View File

37
  */
37
  */
38
 void GcodeSuite::M220() {
38
 void GcodeSuite::M220() {
39
 
39
 
40
-  #if HAS_PRUSA_MMU2
41
-    static int16_t backup_feedrate_percentage = 100;
42
-    if (parser.seen('B')) backup_feedrate_percentage = feedrate_percentage;
43
-    if (parser.seen('R')) feedrate_percentage = backup_feedrate_percentage;
44
-  #endif
40
+  static int16_t backup_feedrate_percentage = 100;
41
+  if (parser.seen('B')) backup_feedrate_percentage = feedrate_percentage;
42
+  if (parser.seen('R')) feedrate_percentage = backup_feedrate_percentage;
45
 
43
 
46
   if (parser.seenval('S')) feedrate_percentage = parser.value_int();
44
   if (parser.seenval('S')) feedrate_percentage = parser.value_int();
47
 
45
 

Loading…
Cancel
Save