1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 12:04:19 +00:00

Fix incompatible types error (#15009)

This commit is contained in:
Marcio Teixeira 2019-08-21 03:15:37 -06:00 committed by Scott Lahteine
parent 825c2c3dc4
commit 69641f1420

View File

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