Browse Source

Lift the extruder when checking for the filament

This avoids leaving marks on the print
Yuri D'Elia 4 years ago
parent
commit
fe4c00fb8a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Firmware/fsensor.cpp

+ 5 - 0
Firmware/fsensor.cpp

@@ -585,6 +585,11 @@ void fsensor_update(void)
 			bool oq_meassure_enabled_tmp = fsensor_oq_meassure_enabled;
 			fsensor_oq_meassure_enabled = true;
 
+            // move the nozzle away while checking the filament
+            current_position[Z_AXIS] += 0.8;
+            if(current_position[Z_AXIS] > Z_MAX_POS) current_position[Z_AXIS] = Z_MAX_POS;
+            plan_buffer_line_curposXYZE(max_feedrate[Z_AXIS], active_extruder);
+            st_synchronize();
 
 			fsensor_err_cnt = 0;
 			fsensor_oq_meassure_start(0);