ソースを参照

M220 print FR percentage (#17101)

Gurmeet Athwal 4年前
コミット
bd44f041e8
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更7行の追加0行の削除
  1. 7
    0
      Marlin/src/gcode/config/M220.cpp

+ 7
- 0
Marlin/src/gcode/config/M220.cpp ファイルの表示

@@ -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
 }

読み込み中…
キャンセル
保存