Skip to content

Commit

Permalink
Fix ExtUI base methods
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 14, 2020
1 parent 6cfc4b5 commit 8f730cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/ui_api.cpp
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 8f730cf

Please sign in to comment.