|
@@ -3537,8 +3537,10 @@ void process_commands()
|
|
st_synchronize();
|
|
st_synchronize();
|
|
|
|
|
|
bool find_z_result = find_bed_induction_sensor_point_z(-1.f);
|
|
bool find_z_result = find_bed_induction_sensor_point_z(-1.f);
|
|
- if(find_z_result == false) lcd_temp_cal_show_result(find_z_result);
|
|
|
|
-
|
|
|
|
|
|
+ if (find_z_result == false) {
|
|
|
|
+ lcd_temp_cal_show_result(find_z_result);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
zero_z = current_position[Z_AXIS];
|
|
zero_z = current_position[Z_AXIS];
|
|
|
|
|
|
//current_position[Z_AXIS]
|
|
//current_position[Z_AXIS]
|
|
@@ -3588,8 +3590,10 @@ void process_commands()
|
|
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 3000 / 60, active_extruder);
|
|
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 3000 / 60, active_extruder);
|
|
st_synchronize();
|
|
st_synchronize();
|
|
find_z_result = find_bed_induction_sensor_point_z(-1.f);
|
|
find_z_result = find_bed_induction_sensor_point_z(-1.f);
|
|
- if (find_z_result == false) lcd_temp_cal_show_result(find_z_result);
|
|
|
|
-
|
|
|
|
|
|
+ if (find_z_result == false) {
|
|
|
|
+ lcd_temp_cal_show_result(find_z_result);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
z_shift = (int)((current_position[Z_AXIS] - zero_z)*axis_steps_per_unit[Z_AXIS]);
|
|
z_shift = (int)((current_position[Z_AXIS] - zero_z)*axis_steps_per_unit[Z_AXIS]);
|
|
|
|
|
|
SERIAL_ECHOLNPGM("");
|
|
SERIAL_ECHOLNPGM("");
|