Browse Source

Fix incompatible types error (#15009)

pull/1/head
Marcio Teixeira 5 years ago
committed by Scott Lahteine
parent
commit
69641f1420
  1. 2
      Marlin/src/lcd/extensible_ui/ui_api.cpp

2
Marlin/src/lcd/extensible_ui/ui_api.cpp

@ -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);

Loading…
Cancel
Save