Skip to content

Commit

Permalink
Fix incompatible types error (MarlinFirmware#15009)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcio-ao authored and thinkyhead committed Aug 21, 2019
1 parent 825c2c3 commit 69641f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extensible_ui/ui_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ namespace ExtUI {
}

float getAxisPosition_mm(const extruder_t extruder) {
const uint8_t old_tool = active_extruder;
const extruder_t old_tool = getActiveTool();
setActiveTool(extruder, true);
const float pos = flags.manual_motion ? destination[E_AXIS] : current_position[E_AXIS];
setActiveTool(old_tool, true);
Expand Down

0 comments on commit 69641f1

Please sign in to comment.