1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-25 04:48:31 +00:00

Fix ExtUI base methods

This commit is contained in:
Scott Lahteine 2020-08-14 08:45:48 -05:00
parent 16f2f2bce7
commit f9f514a46c

View File

@ -548,7 +548,7 @@ namespace ExtUI {
void setAxisSteps_per_mm(const float value, const extruder_t extruder) {
UNUSED_E(extruder);
planner.settings.axis_steps_per_mm[E_AXIS_N(axis - E0)] = value;
planner.settings.axis_steps_per_mm[E_AXIS_N(extruder - E0)] = value;
}
feedRate_t getAxisMaxFeedrate_mm_s(const axis_t axis) {
@ -557,7 +557,7 @@ namespace ExtUI {
feedRate_t getAxisMaxFeedrate_mm_s(const extruder_t extruder) {
UNUSED_E(extruder);
return planner.settings.max_feedrate_mm_s[E_AXIS_N(axis - E0)];
return planner.settings.max_feedrate_mm_s[E_AXIS_N(extruder - E0)];
}
void setAxisMaxFeedrate_mm_s(const feedRate_t value, const axis_t axis) {