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,6 +29,8 @@
29 29
  * Parameters
30 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 34
  * With PRUSA_MMU2...
33 35
  *   B : Flag to back up the current factor
34 36
  *   R : Flag to restore the last-saved factor
@@ -43,4 +45,9 @@ void GcodeSuite::M220() {
43 45
 
44 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