Browse Source

M220 print FR percentage (#17101)

Gurmeet Athwal 4 years ago
parent
commit
bd44f041e8
No account linked to committer's email address
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      Marlin/src/gcode/config/M220.cpp

+ 7
- 0
Marlin/src/gcode/config/M220.cpp View File

29
  * Parameters
29
  * Parameters
30
  *   S<percent> : Set the feed rate percentage factor
30
  *   S<percent> : Set the feed rate percentage factor
31
  *
31
  *
32
+ * Report the current speed percentage factor if no parameter is specified
33
+ * 
32
  * With PRUSA_MMU2...
34
  * With PRUSA_MMU2...
33
  *   B : Flag to back up the current factor
35
  *   B : Flag to back up the current factor
34
  *   R : Flag to restore the last-saved factor
36
  *   R : Flag to restore the last-saved factor
43
 
45
 
44
   if (parser.seenval('S')) feedrate_percentage = parser.value_int();
46
   if (parser.seenval('S')) feedrate_percentage = parser.value_int();
45
 
47
 
48
+  if (!parser.seen_any()) {
49
+    SERIAL_ECHOPAIR("FR:", feedrate_percentage);
50
+    SERIAL_CHAR('%');
51
+    SERIAL_EOL();
52
+  }
46
 }
53
 }

Loading…
Cancel
Save