소스 검색

Restore "S" parameter of M204 for retrocompatibility.

alexborro 9 년 전
부모
커밋
4521f6655b
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      Marlin/Marlin_main.cpp

+ 7
- 0
Marlin/Marlin_main.cpp 파일 보기

@@ -3525,6 +3525,13 @@ inline void gcode_M203() {
3525 3525
  *  Also sets minimum segment time in ms (B20000) to prevent buffer under-runs and M20 minimum feedrate
3526 3526
  */
3527 3527
 inline void gcode_M204() {
3528
+  if (code_seen('S'))   // Kept for legacy compatibility. Should NOT BE USED for new developments.
3529
+  {
3530
+    acceleration = code_value();
3531
+    travel_acceleration = acceleration;
3532
+    SERIAL_ECHOPAIR("Setting Printing and Travelling Acceleration: ", acceleration );
3533
+    SERIAL_EOL;
3534
+  }
3528 3535
   if (code_seen('P'))
3529 3536
   {
3530 3537
     acceleration = code_value();

Loading…
취소
저장