Browse Source

Minor tweak to M204 code (PR#2457)

Scott Lahteine 9 years ago
parent
commit
db23b9b184
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      Marlin/Marlin_main.cpp

+ 2
- 3
Marlin/Marlin_main.cpp View File

4105
  */
4105
  */
4106
 inline void gcode_M204() {
4106
 inline void gcode_M204() {
4107
   if (code_seen('S')) {  // Kept for legacy compatibility. Should NOT BE USED for new developments.
4107
   if (code_seen('S')) {  // Kept for legacy compatibility. Should NOT BE USED for new developments.
4108
-    acceleration = code_value();
4109
-    travel_acceleration = acceleration;
4110
-    SERIAL_ECHOPAIR("Setting Print and Travel Acceleration: ", acceleration );
4108
+    travel_acceleration = acceleration = code_value();
4109
+    SERIAL_ECHOPAIR("Setting Print and Travel Acceleration: ", acceleration);
4111
     SERIAL_EOL;
4110
     SERIAL_EOL;
4112
   }
4111
   }
4113
   if (code_seen('P')) {
4112
   if (code_seen('P')) {

Loading…
Cancel
Save