소스 검색

Avoid another call to st_get_position_mm

current_position is already filled by planner_abort_hard.
Yuri D'Elia 5 년 전
부모
커밋
67decb466d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Firmware/Marlin_main.cpp

+ 1 - 1
Firmware/Marlin_main.cpp

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