Lift the extruder when checking for the filament

This avoids leaving marks on the print
This commit is contained in:
Yuri D'Elia 2019-12-27 19:35:08 +01:00
parent 301d64042b
commit fe4c00fb8a
1 changed files with 5 additions and 0 deletions

View File

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