Skip to content

Commit 41a4692

Browse files
committed
🚸 Change M201 G to S
1 parent a597661 commit 41a4692

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

Marlin/src/gcode/config/M200-M205.cpp

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,29 @@
108108
#endif // !NO_VOLUMETRICS
109109

110110
/**
111-
* M201: Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
111+
* M201: Set max acceleration in units/s^2 for print moves.
112112
*
113-
* With multiple extruders use T to specify which one.
113+
* X<accel> : Max Acceleration for X
114+
* Y<accel> : Max Acceleration for Y
115+
* Z<accel> : Max Acceleration for Z
116+
* ... : etc
117+
* E<accel> : Max Acceleration for Extruder
118+
* T<index> : Extruder index to set
119+
*
120+
* With XY_FREQUENCY_LIMIT:
121+
* F<Hz> : Frequency limit for XY...IJKUVW
122+
* S<percent> : Speed factor percentage.
114123
*/
115124
void GcodeSuite::M201() {
116-
if (!parser.seen("T" STR_AXES_LOGICAL))
125+
if (!parser.seen("T" STR_AXES_LOGICAL TERN_(XY_FREQUENCY_LIMIT, "FS")))
117126
return M201_report();
118127

119128
const int8_t target_extruder = get_target_extruder_from_command();
120129
if (target_extruder < 0) return;
121130

122131
#ifdef XY_FREQUENCY_LIMIT
123132
if (parser.seenval('F')) planner.set_frequency_limit(parser.value_byte());
124-
if (parser.seenval('G')) planner.xy_freq_min_speed_factor = constrain(parser.value_float(), 1, 100) / 100;
133+
if (parser.seenval('S')) planner.xy_freq_min_speed_factor = constrain(parser.value_float(), 1, 100) / 100;
125134
#endif
126135

127136
LOOP_LOGICAL_AXES(i) {

0 commit comments

Comments
 (0)