|
|
@ -61,7 +61,7 @@ void GcodeSuite::M201() {
|
|
|
|
|
|
|
|
|
|
|
|
LOOP_XYZE(i) {
|
|
|
|
LOOP_XYZE(i) {
|
|
|
|
if (parser.seen(axis_codes[i])) {
|
|
|
|
if (parser.seen(axis_codes[i])) {
|
|
|
|
const uint8_t a = (i == E_AXIS ? E_AXIS_N(target_extruder) : i);
|
|
|
|
const uint8_t a = (i == E_AXIS ? uint8_t(E_AXIS_N(target_extruder)) : i);
|
|
|
|
planner.settings.max_acceleration_mm_per_s2[a] = parser.value_axis_units((AxisEnum)a);
|
|
|
|
planner.settings.max_acceleration_mm_per_s2[a] = parser.value_axis_units((AxisEnum)a);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -81,7 +81,7 @@ void GcodeSuite::M203() {
|
|
|
|
|
|
|
|
|
|
|
|
LOOP_XYZE(i)
|
|
|
|
LOOP_XYZE(i)
|
|
|
|
if (parser.seen(axis_codes[i])) {
|
|
|
|
if (parser.seen(axis_codes[i])) {
|
|
|
|
const uint8_t a = (i == E_AXIS ? E_AXIS_N(target_extruder) : i);
|
|
|
|
const uint8_t a = (i == E_AXIS ? uint8_t(E_AXIS_N(target_extruder)) : i);
|
|
|
|
planner.settings.max_feedrate_mm_s[a] = parser.value_axis_units((AxisEnum)a);
|
|
|
|
planner.settings.max_feedrate_mm_s[a] = parser.value_axis_units((AxisEnum)a);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|