|
@@ -4447,7 +4447,7 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE))
|
|
|
|
|
|
int XY_AXIS_FEEDRATE = homing_feedrate[X_AXIS] / 20;
|
|
|
int Z_LIFT_FEEDRATE = homing_feedrate[Z_AXIS] / 40;
|
|
|
- bool has_z = (nMeasPoints == 3) && is_bed_z_jitter_data_valid();
|
|
|
+ bool has_z = is_bed_z_jitter_data_valid();
|
|
|
#ifdef SUPPORT_VERBOSITY
|
|
|
if (verbosity_level >= 1) {
|
|
|
has_z ? SERIAL_PROTOCOLPGM("Z jitter data from Z cal. valid.\n") : SERIAL_PROTOCOLPGM("Z jitter data from Z cal. not valid.\n");
|
|
@@ -4466,11 +4466,14 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE))
|
|
|
continue;
|
|
|
}*/
|
|
|
if (iy & 1) ix = (nMeasPoints - 1) - ix;
|
|
|
+ if (nMeasPoints == 7)
|
|
|
+ {
|
|
|
+ has_z = ((ix % 3 == 0) && (iy % 3 == 0)) && is_bed_z_jitter_data_valid();
|
|
|
+ }
|
|
|
float z0 = 0.f;
|
|
|
if (has_z && (mesh_point > 0)) {
|
|
|
uint16_t z_offset_u = eeprom_read_word((uint16_t*)(EEPROM_BED_CALIBRATION_Z_JITTER + 2 * (ix + iy * 3 - 1)));
|
|
|
z0 = mbl.z_values[0][0] + *reinterpret_cast<int16_t*>(&z_offset_u) * 0.01;
|
|
|
-
|
|
|
#ifdef SUPPORT_VERBOSITY
|
|
|
if (verbosity_level >= 1) {
|
|
|
SERIAL_ECHOLNPGM("");
|
|
@@ -4481,7 +4484,6 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE))
|
|
|
SERIAL_ECHOLNPGM("");
|
|
|
}
|
|
|
#endif
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|
|
@@ -4511,7 +4513,7 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE))
|
|
|
|
|
|
const float Z_CALIBRATION_THRESHOLD = 1.f;
|
|
|
if (!find_bed_induction_sensor_point_z((has_z && mesh_point > 0) ? z0 - Z_CALIBRATION_THRESHOLD : -10.f, nProbeRetry)) {
|
|
|
- kill_message = _T(MSG_BED_LEVELING_FAILED_POINT_LOW);
|
|
|
+ printf_P(_T(MSG_BED_LEVELING_FAILED_POINT_LOW));
|
|
|
break;
|
|
|
}
|
|
|
if (MESH_HOME_Z_SEARCH - current_position[Z_AXIS] < 0.1f) {
|
|
@@ -4521,16 +4523,16 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE))
|
|
|
st_synchronize();
|
|
|
|
|
|
if (!find_bed_induction_sensor_point_z((has_z && mesh_point > 0) ? z0 - Z_CALIBRATION_THRESHOLD : -10.f, nProbeRetry)) {
|
|
|
- kill_message = _T(MSG_BED_LEVELING_FAILED_POINT_LOW);
|
|
|
+ printf_P(_T(MSG_BED_LEVELING_FAILED_POINT_LOW));
|
|
|
break;
|
|
|
}
|
|
|
if (MESH_HOME_Z_SEARCH - current_position[Z_AXIS] < 0.1f) {
|
|
|
- kill_message = _i("Bed leveling failed. Sensor disconnected or cable broken. Waiting for reset.");
|
|
|
+ printf_P(PSTR("Bed leveling failed. Sensor disconnected or cable broken. Waiting for reset.\n"));
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
if (has_z && fabs(z0 - current_position[Z_AXIS]) > Z_CALIBRATION_THRESHOLD) {
|
|
|
- kill_message = _i("Bed leveling failed. Sensor triggered too high. Waiting for reset.");
|
|
|
+ printf_P(PSTR("Bed leveling failed. Sensor triggered too high. Waiting for reset.\n"));
|
|
|
break;
|
|
|
}
|
|
|
#ifdef SUPPORT_VERBOSITY
|