Skip to content

Commit

Permalink
Update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
leptun committed Aug 17, 2023
1 parent 4e4f315 commit 5798a03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2947,12 +2947,12 @@ static void gcode_G80()
break;
}
if (MESH_HOME_Z_SEARCH - current_position[Z_AXIS] < 0.1f) {
puts_P(PSTR("Bed leveling failed. Sensor disconnected or cable broken."));
puts_P(PSTR("Bed leveling failed. Sensor triggered too soon"));
break;
}
}
if (has_z && fabs(z0 - current_position[Z_AXIS]) > Z_CALIBRATION_THRESHOLD) { //if we have data from z calibration, max. allowed difference is 1mm for each point
puts_P(PSTR("Bed leveling failed. Sensor triggered too high."));
puts_P(PSTR("Bed leveling failed. Too much variation from eeprom mesh"));
break;
}

Expand All @@ -2973,7 +2973,7 @@ static void gcode_G80()
static uint8_t g80_fail_cnt = 0;
if (mesh_point != MESH_NUM_X_POINTS * MESH_NUM_Y_POINTS) {
if (g80_fail_cnt++ >= 2) {
kill(_i("Mesh bed leveling failed. Please run Z calibration"));
kill(PSTR("Mesh bed leveling failed. Please run Z calibration."));
}
Sound_MakeSound(e_SOUND_TYPE_StandardAlert);
bool bState;
Expand Down

0 comments on commit 5798a03

Please sign in to comment.