Restore "S" parameter of M204 for retrocompatibility.

This commit is contained in:
alexborro 2015-03-18 12:19:30 -03:00
parent 5ddb8d94e2
commit 4521f6655b

View File

@ -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();