|
@ -307,7 +307,8 @@ |
|
|
static float x_pos, y_pos, measured_z, card_thickness = 0.0, ubl_constant = 0.0; |
|
|
static float x_pos, y_pos, measured_z, card_thickness = 0.0, ubl_constant = 0.0; |
|
|
|
|
|
|
|
|
#if ENABLED(ULTRA_LCD) |
|
|
#if ENABLED(ULTRA_LCD) |
|
|
void lcd_setstatus(const char* message, bool persist); |
|
|
extern void lcd_setstatus(const char* message, const bool persist); |
|
|
|
|
|
extern void lcd_setstatuspgm(const char* message, const uint8_t level); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
void gcode_G29() { |
|
|
void gcode_G29() { |
|
@ -655,7 +656,7 @@ |
|
|
if (ELAPSED(millis(), nxt)) { |
|
|
if (ELAPSED(millis(), nxt)) { |
|
|
SERIAL_PROTOCOLLNPGM("\nZ-Offset Adjustment Stopped."); |
|
|
SERIAL_PROTOCOLLNPGM("\nZ-Offset Adjustment Stopped."); |
|
|
do_blocking_move_to_z(Z_CLEARANCE_DEPLOY_PROBE); |
|
|
do_blocking_move_to_z(Z_CLEARANCE_DEPLOY_PROBE); |
|
|
lcd_setstatus("Z-Offset Stopped", true); |
|
|
lcd_setstatuspgm("Z-Offset Stopped"); |
|
|
restore_ubl_active_state_and_leave(); |
|
|
restore_ubl_active_state_and_leave(); |
|
|
goto LEAVE; |
|
|
goto LEAVE; |
|
|
} |
|
|
} |
|
@ -673,7 +674,8 @@ |
|
|
LEAVE: |
|
|
LEAVE: |
|
|
|
|
|
|
|
|
#if ENABLED(ULTRA_LCD) |
|
|
#if ENABLED(ULTRA_LCD) |
|
|
lcd_setstatus(" ", true); |
|
|
lcd_reset_alert_level(); |
|
|
|
|
|
lcd_setstatuspgm(""); |
|
|
lcd_quick_feedback(); |
|
|
lcd_quick_feedback(); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
@ -977,7 +979,7 @@ |
|
|
|
|
|
|
|
|
bool g29_parameter_parsing() { |
|
|
bool g29_parameter_parsing() { |
|
|
#if ENABLED(ULTRA_LCD) |
|
|
#if ENABLED(ULTRA_LCD) |
|
|
lcd_setstatus("Doing G29 UBL !", true); |
|
|
lcd_setstatuspgm("Doing G29 UBL!"); |
|
|
lcd_quick_feedback(); |
|
|
lcd_quick_feedback(); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
@ -1088,7 +1090,7 @@ |
|
|
ubl_state_recursion_chk++; |
|
|
ubl_state_recursion_chk++; |
|
|
if (ubl_state_recursion_chk != 1) { |
|
|
if (ubl_state_recursion_chk != 1) { |
|
|
SERIAL_ECHOLNPGM("save_ubl_active_state_and_disabled() called multiple times in a row."); |
|
|
SERIAL_ECHOLNPGM("save_ubl_active_state_and_disabled() called multiple times in a row."); |
|
|
lcd_setstatus("save_UBL_active() error", true); |
|
|
lcd_setstatuspgm("save_UBL_active() error"); |
|
|
lcd_quick_feedback(); |
|
|
lcd_quick_feedback(); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@ -1099,7 +1101,7 @@ |
|
|
void restore_ubl_active_state_and_leave() { |
|
|
void restore_ubl_active_state_and_leave() { |
|
|
if (--ubl_state_recursion_chk) { |
|
|
if (--ubl_state_recursion_chk) { |
|
|
SERIAL_ECHOLNPGM("restore_ubl_active_state_and_leave() called too many times."); |
|
|
SERIAL_ECHOLNPGM("restore_ubl_active_state_and_leave() called too many times."); |
|
|
lcd_setstatus("restore_UBL_active() error", true); |
|
|
lcd_setstatuspgm("restore_UBL_active() error"); |
|
|
lcd_quick_feedback(); |
|
|
lcd_quick_feedback(); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@ -1114,7 +1116,7 @@ |
|
|
void g29_what_command() { |
|
|
void g29_what_command() { |
|
|
const uint16_t k = E2END - ubl.eeprom_start; |
|
|
const uint16_t k = E2END - ubl.eeprom_start; |
|
|
|
|
|
|
|
|
SERIAL_PROTOCOLPGM("Unified Bed Leveling System Version 1.00 "); |
|
|
SERIAL_PROTOCOLPGM("Unified Bed Leveling System Version " UBL_VERSION " "); |
|
|
if (ubl.state.active) |
|
|
if (ubl.state.active) |
|
|
SERIAL_PROTOCOLCHAR('A'); |
|
|
SERIAL_PROTOCOLCHAR('A'); |
|
|
else |
|
|
else |
|
@ -1339,7 +1341,7 @@ |
|
|
memset(not_done, 0xFF, sizeof(not_done)); |
|
|
memset(not_done, 0xFF, sizeof(not_done)); |
|
|
|
|
|
|
|
|
#if ENABLED(ULTRA_LCD) |
|
|
#if ENABLED(ULTRA_LCD) |
|
|
lcd_setstatus("Fine Tuning Mesh.", true); |
|
|
lcd_setstatuspgm("Fine Tuning Mesh"); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
do_blocking_move_to_z(Z_CLEARANCE_DEPLOY_PROBE); |
|
|
do_blocking_move_to_z(Z_CLEARANCE_DEPLOY_PROBE); |
|
@ -1398,7 +1400,7 @@ |
|
|
lcd_return_to_status(); |
|
|
lcd_return_to_status(); |
|
|
//SERIAL_PROTOCOLLNPGM("\nFine Tuning of Mesh Stopped.");
|
|
|
//SERIAL_PROTOCOLLNPGM("\nFine Tuning of Mesh Stopped.");
|
|
|
do_blocking_move_to_z(Z_CLEARANCE_DEPLOY_PROBE); |
|
|
do_blocking_move_to_z(Z_CLEARANCE_DEPLOY_PROBE); |
|
|
lcd_setstatus("Mesh Editing Stopped", true); |
|
|
lcd_setstatuspgm("Mesh Editing Stopped"); |
|
|
|
|
|
|
|
|
while (ubl_lcd_clicked()) idle(); |
|
|
while (ubl_lcd_clicked()) idle(); |
|
|
|
|
|
|
|
@ -1426,9 +1428,9 @@ |
|
|
do_blocking_move_to_xy(lx, ly); |
|
|
do_blocking_move_to_xy(lx, ly); |
|
|
|
|
|
|
|
|
#if ENABLED(ULTRA_LCD) |
|
|
#if ENABLED(ULTRA_LCD) |
|
|
lcd_setstatus("Done Editing Mesh", true); |
|
|
lcd_setstatuspgm("Done Editing Mesh"); |
|
|
#endif |
|
|
#endif |
|
|
SERIAL_ECHOLNPGM("Done Editing Mesh."); |
|
|
SERIAL_ECHOLNPGM("Done Editing Mesh"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#endif // AUTO_BED_LEVELING_UBL
|
|
|
#endif // AUTO_BED_LEVELING_UBL
|