Browse Source

Restore "S" parameter of M204 for retrocompatibility.

pull/1/head
alexborro 10 years ago
parent
commit
4521f6655b
  1. 7
      Marlin/Marlin_main.cpp

7
Marlin/Marlin_main.cpp

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

Loading…
Cancel
Save