Avoid another call to st_get_position_mm

current_position is already filled by planner_abort_hard.
This commit is contained in:
Yuri D'Elia 2020-01-21 16:24:19 +01:00
parent 6b8c062507
commit 67decb466d

View File

@ -10549,7 +10549,7 @@ void uvlo_()
planner_abort_hard();
// Store the current extruder position.
eeprom_update_float((float*)(EEPROM_UVLO_CURRENT_POSITION_E), st_get_position_mm(E_AXIS));
eeprom_update_float((float*)(EEPROM_UVLO_CURRENT_POSITION_E), current_position[E_AXIS]);
eeprom_update_byte((uint8_t*)EEPROM_UVLO_E_ABS, axis_relative_modes[3]?0:1);
// Clean the input command queue.
cmdqueue_reset();