Sfoglia il codice sorgente

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

nb-rapidia 4 anni fa
parent
commit
978d93af88
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 3 aggiunte e 5 eliminazioni
  1. 3
    5
      Marlin/src/gcode/config/M220.cpp

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

@@ -37,11 +37,9 @@
37 37
  */
38 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 44
   if (parser.seenval('S')) feedrate_percentage = parser.value_int();
47 45
 

Loading…
Annulla
Salva