Browse Source

Fix ExtUI base methods

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
f9f514a46c
  1. 4
      Marlin/src/lcd/extui/ui_api.cpp

4
Marlin/src/lcd/extui/ui_api.cpp

@ -548,7 +548,7 @@ namespace ExtUI {
void setAxisSteps_per_mm(const float value, const extruder_t extruder) { void setAxisSteps_per_mm(const float value, const extruder_t extruder) {
UNUSED_E(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) { feedRate_t getAxisMaxFeedrate_mm_s(const axis_t axis) {
@ -557,7 +557,7 @@ namespace ExtUI {
feedRate_t getAxisMaxFeedrate_mm_s(const extruder_t extruder) { feedRate_t getAxisMaxFeedrate_mm_s(const extruder_t extruder) {
UNUSED_E(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) { void setAxisMaxFeedrate_mm_s(const feedRate_t value, const axis_t axis) {

Loading…
Cancel
Save