@ -1057,16 +1057,14 @@ void kill_screen(const char* lcd_msg) {
void lcd_babystep_y ( ) { lcd_goto_screen ( _lcd_babystep_y ) ; babysteps_done = 0 ; defer_return_to_status = true ; }
# endif
# if ENABLED(BABYSTEP_ZPROBE_OFFSET)
# if ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY)
# if ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY) || ENABLED(ENABLE_MESH_EDIT_GFX_OVERLAY)
void _lcd_ babystep_ zoffset_overlay( const float in_zoffset ) {
void _lcd_zoffset_overlay_gfx ( const float in_zoffset ) {
// Determine whether the user is raising or lowering the nozzle.
int8_t dir = 0 ;
static float old_zprobe_zoffset = 0 ;
if ( in_zoffset ! = old_zprobe_zoffset ) {
dir = ( in_zoffset > old_zprobe_zoffset ) ? 1 : - 1 ;
dir = ( in_zoffset > old_zprobe_zoffset ) ? 1 : ( in_zoffset = = 0 ) ? 0 : - 1 ;
old_zprobe_zoffset = in_zoffset ;
}
@ -1097,7 +1095,9 @@ void kill_screen(const char* lcd_msg) {
}
}
# endif // BABYSTEP_ZPROBE_GFX_OVERLAY
# endif // BABYSTEP_ZPROBE_GFX_OVERLAY || ENABLE_MESH_EDIT_GFX_OVERLAY
# if ENABLED(BABYSTEP_ZPROBE_OFFSET)
void lcd_babystep_zoffset ( ) {
if ( lcd_clicked ) { return lcd_goto_previous_menu_no_defer ( ) ; }
@ -1121,7 +1121,7 @@ void kill_screen(const char* lcd_msg) {
if ( lcdDrawUpdate ) {
lcd_implementation_drawedit ( PSTR ( MSG_ZPROBE_ZOFFSET ) , ftostr43sign ( zprobe_zoffset ) ) ;
# if ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY)
_lcd_ babystep_ zoffset_overlay( zprobe_zoffset ) ;
_lcd_ zoffset_overlay_gfx ( zprobe_zoffset ) ;
# endif
}
}
@ -1158,6 +1158,9 @@ void kill_screen(const char* lcd_msg) {
if ( lcdDrawUpdate )
lcd_implementation_drawedit ( msg , ftostr43sign ( mesh_edit_value ) ) ;
# if ENABLED(ENABLE_MESH_EDIT_GFX_OVERLAY)
_lcd_zoffset_overlay_gfx ( mesh_edit_value ) ;
# endif
}
void _lcd_mesh_edit_NOP ( ) {