@ -428,7 +428,7 @@ void unified_bed_leveling::G29() {
SERIAL_ECHOLNPGM ( " Mesh invalidated. Probing mesh. " ) ;
}
if ( param . V_verbosity > 1 ) {
SERIAL_ECHOP AIR ( " Probing around ( " , param . XY_pos . x ) ;
SERIAL_ECHOP GM ( " Probing around ( " , param . XY_pos . x ) ;
SERIAL_CHAR ( ' , ' ) ;
SERIAL_DECIMAL ( param . XY_pos . y ) ;
SERIAL_ECHOLNPGM ( " ). \n " ) ;
@ -602,7 +602,7 @@ void unified_bed_leveling::G29() {
}
if ( ! WITHIN ( param . KLS_storage_slot , 0 , a - 1 ) ) {
SERIAL_ECHOLNP AIR ( " ?Invalid storage slot. \n ?Use 0 to " , a - 1 ) ;
SERIAL_ECHOLNP GM ( " ?Invalid storage slot. \n ?Use 0 to " , a - 1 ) ;
return ;
}
@ -630,7 +630,7 @@ void unified_bed_leveling::G29() {
}
if ( ! WITHIN ( param . KLS_storage_slot , 0 , a - 1 ) ) {
SERIAL_ECHOLNP AIR ( " ?Invalid storage slot. \n ?Use 0 to " , a - 1 ) ;
SERIAL_ECHOLNP GM ( " ?Invalid storage slot. \n ?Use 0 to " , a - 1 ) ;
goto LEAVE ;
}
@ -653,7 +653,7 @@ void unified_bed_leveling::G29() {
# endif
# ifdef Z_PROBE_END_SCRIPT
if ( DEBUGGING ( LEVELING ) ) DEBUG_ECHOLNP AIR ( " Z Probe End Script: " , Z_PROBE_END_SCRIPT ) ;
if ( DEBUGGING ( LEVELING ) ) DEBUG_ECHOLNP GM ( " Z Probe End Script: " , Z_PROBE_END_SCRIPT ) ;
if ( probe_deployed ) {
planner . synchronize ( ) ;
gcode . process_subcommands_now_P ( PSTR ( Z_PROBE_END_SCRIPT ) ) ;
@ -690,7 +690,7 @@ void unified_bed_leveling::adjust_mesh_to_mean(const bool cflag, const_float_t o
if ( ! isnan ( z_values [ x ] [ y ] ) )
sum_of_diff_squared + = sq ( z_values [ x ] [ y ] - mean ) ;
SERIAL_ECHOLNP AIR ( " # of samples: " , n ) ;
SERIAL_ECHOLNP GM ( " # of samples: " , n ) ;
SERIAL_ECHOLNPAIR_F ( " Mean Mesh Height: " , mean , 6 ) ;
const float sigma = SQRT ( sum_of_diff_squared / ( n + 1 ) ) ;
@ -735,7 +735,7 @@ void unified_bed_leveling::shift_mesh_height() {
if ( do_ubl_mesh_map ) display_map ( param . T_map_type ) ;
const uint8_t point_num = ( GRID_MAX_POINTS - count ) + 1 ;
SERIAL_ECHOLNP AIR ( " Probing mesh point " , point_num , " / " , GRID_MAX_POINTS , " . " ) ;
SERIAL_ECHOLNP GM ( " Probing mesh point " , point_num , " / " , GRID_MAX_POINTS , " . " ) ;
TERN_ ( HAS_STATUS_MESSAGE , ui . status_printf_P ( 0 , PSTR ( S_FMT " %i/%i " ) , GET_TEXT ( MSG_PROBING_POINT ) , point_num , int ( GRID_MAX_POINTS ) ) ) ;
# if HAS_LCD_MENU
@ -1450,7 +1450,7 @@ void unified_bed_leveling::smart_fill_mesh() {
# endif
if ( param . V_verbosity > 3 ) {
serial_spaces ( 16 ) ;
SERIAL_ECHOLNP AIR ( " Corrected_Z= " , measured_z ) ;
SERIAL_ECHOLNP GM ( " Corrected_Z= " , measured_z ) ;
}
incremental_LSF ( & lsf_results , points [ 0 ] , measured_z ) ;
}
@ -1469,7 +1469,7 @@ void unified_bed_leveling::smart_fill_mesh() {
measured_z - = get_z_correction ( points [ 1 ] ) ;
if ( param . V_verbosity > 3 ) {
serial_spaces ( 16 ) ;
SERIAL_ECHOLNP AIR ( " Corrected_Z= " , measured_z ) ;
SERIAL_ECHOLNP GM ( " Corrected_Z= " , measured_z ) ;
}
incremental_LSF ( & lsf_results , points [ 1 ] , measured_z ) ;
}
@ -1489,7 +1489,7 @@ void unified_bed_leveling::smart_fill_mesh() {
measured_z - = get_z_correction ( points [ 2 ] ) ;
if ( param . V_verbosity > 3 ) {
serial_spaces ( 16 ) ;
SERIAL_ECHOLNP AIR ( " Corrected_Z= " , measured_z ) ;
SERIAL_ECHOLNP GM ( " Corrected_Z= " , measured_z ) ;
}
incremental_LSF ( & lsf_results , points [ 2 ] , measured_z ) ;
}
@ -1517,7 +1517,7 @@ void unified_bed_leveling::smart_fill_mesh() {
rpos . y = y_min + dy * ( zig_zag ? param . J_grid_size - 1 - iy : iy ) ;
if ( ! abort_flag ) {
SERIAL_ECHOLNP AIR ( " Tilting mesh point " , point_num , " / " , total_points , " \n " ) ;
SERIAL_ECHOLNP GM ( " Tilting mesh point " , point_num , " / " , total_points , " \n " ) ;
TERN_ ( HAS_STATUS_MESSAGE , ui . status_printf_P ( 0 , PSTR ( S_FMT " %i/%i " ) , GET_TEXT ( MSG_LCD_TILTING_MESH ) , point_num , total_points ) ) ;
measured_z = probe . probe_at_point ( rpos , parser . seen_test ( ' E ' ) ? PROBE_PT_STOW : PROBE_PT_RAISE , param . V_verbosity ) ; // TODO: Needs error handling
@ -1545,7 +1545,7 @@ void unified_bed_leveling::smart_fill_mesh() {
if ( param . V_verbosity > 3 ) {
serial_spaces ( 16 ) ;
SERIAL_ECHOLNP AIR ( " Corrected_Z= " , measured_z ) ;
SERIAL_ECHOLNP GM ( " Corrected_Z= " , measured_z ) ;
}
incremental_LSF ( & lsf_results , rpos , measured_z ) ;
}
@ -1648,7 +1648,7 @@ void unified_bed_leveling::smart_fill_mesh() {
DEBUG_ECHOLNPAIR_F ( " 0 : " , normed ( safe_homing_xy , 0 ) , 6 ) ;
d_from ( ) ; DEBUG_ECHOPGM ( " safe home with Z= " ) ;
DEBUG_ECHOLNPAIR_F ( " mesh value " , normed ( safe_homing_xy , get_z_correction ( safe_homing_xy ) ) , 6 ) ;
DEBUG_ECHOP AIR ( " Z error = ( " , Z_SAFE_HOMING_X_POINT , " , " , Z_SAFE_HOMING_Y_POINT ) ;
DEBUG_ECHOP GM ( " Z error = ( " , Z_SAFE_HOMING_X_POINT , " , " , Z_SAFE_HOMING_Y_POINT ) ;
DEBUG_ECHOLNPAIR_F ( " ) = " , get_z_correction ( safe_homing_xy ) , 6 ) ;
# endif
} // DEBUGGING(LEVELING)
@ -1722,7 +1722,7 @@ void unified_bed_leveling::smart_fill_mesh() {
if ( storage_slot = = - 1 )
SERIAL_ECHOPGM ( " No Mesh Loaded. " ) ;
else
SERIAL_ECHOP AIR ( " Mesh " , storage_slot , " Loaded. " ) ;
SERIAL_ECHOP GM ( " Mesh " , storage_slot , " Loaded. " ) ;
SERIAL_EOL ( ) ;
serial_delay ( 50 ) ;
@ -1736,14 +1736,14 @@ void unified_bed_leveling::smart_fill_mesh() {
SERIAL_ECHOLNPAIR_F ( " Probe Offset M851 Z " , probe . offset . z , 7 ) ;
# endif
SERIAL_ECHOLNP AIR ( " MESH_MIN_X " STRINGIFY ( MESH_MIN_X ) " = " , MESH_MIN_X ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP AIR ( " MESH_MIN_Y " STRINGIFY ( MESH_MIN_Y ) " = " , MESH_MIN_Y ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP AIR ( " MESH_MAX_X " STRINGIFY ( MESH_MAX_X ) " = " , MESH_MAX_X ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP AIR ( " MESH_MAX_Y " STRINGIFY ( MESH_MAX_Y ) " = " , MESH_MAX_Y ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP AIR ( " GRID_MAX_POINTS_X " , GRID_MAX_POINTS_X ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP AIR ( " GRID_MAX_POINTS_Y " , GRID_MAX_POINTS_Y ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP AIR ( " MESH_X_DIST " , MESH_X_DIST ) ;
SERIAL_ECHOLNP AIR ( " MESH_Y_DIST " , MESH_Y_DIST ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP GM ( " MESH_MIN_X " STRINGIFY ( MESH_MIN_X ) " = " , MESH_MIN_X ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP GM ( " MESH_MIN_Y " STRINGIFY ( MESH_MIN_Y ) " = " , MESH_MIN_Y ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP GM ( " MESH_MAX_X " STRINGIFY ( MESH_MAX_X ) " = " , MESH_MAX_X ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP GM ( " MESH_MAX_Y " STRINGIFY ( MESH_MAX_Y ) " = " , MESH_MAX_Y ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP GM ( " GRID_MAX_POINTS_X " , GRID_MAX_POINTS_X ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP GM ( " GRID_MAX_POINTS_Y " , GRID_MAX_POINTS_Y ) ; serial_delay ( 50 ) ;
SERIAL_ECHOLNP GM ( " MESH_X_DIST " , MESH_X_DIST ) ;
SERIAL_ECHOLNP GM ( " MESH_Y_DIST " , MESH_Y_DIST ) ; serial_delay ( 50 ) ;
SERIAL_ECHOPGM ( " X-Axis Mesh Points at: " ) ;
LOOP_L_N ( i , GRID_MAX_POINTS_X ) {
@ -1762,27 +1762,27 @@ void unified_bed_leveling::smart_fill_mesh() {
SERIAL_EOL ( ) ;
# if HAS_KILL
SERIAL_ECHOLNP AIR ( " Kill pin on : " , KILL_PIN , " state: " , kill_state ( ) ) ;
SERIAL_ECHOLNP GM ( " Kill pin on : " , KILL_PIN , " state: " , kill_state ( ) ) ;
# endif
SERIAL_EOL ( ) ;
serial_delay ( 50 ) ;
# if ENABLED(UBL_DEVEL_DEBUGGING)
SERIAL_ECHOLNP AIR ( " ubl_state_at_invocation : " , ubl_state_at_invocation , " \n ubl_state_recursion_chk : " , ubl_state_recursion_chk ) ;
SERIAL_ECHOLNP GM ( " ubl_state_at_invocation : " , ubl_state_at_invocation , " \n ubl_state_recursion_chk : " , ubl_state_recursion_chk ) ;
serial_delay ( 50 ) ;
SERIAL_ECHOLNP AIR ( " Meshes go from " , hex_address ( ( void * ) settings . meshes_start_index ( ) ) , " to " , hex_address ( ( void * ) settings . meshes_end_index ( ) ) ) ;
SERIAL_ECHOLNP GM ( " Meshes go from " , hex_address ( ( void * ) settings . meshes_start_index ( ) ) , " to " , hex_address ( ( void * ) settings . meshes_end_index ( ) ) ) ;
serial_delay ( 50 ) ;
SERIAL_ECHOLNP AIR ( " sizeof(ubl) : " , sizeof ( ubl ) ) ; SERIAL_EOL ( ) ;
SERIAL_ECHOLNP AIR ( " z_value[][] size: " , sizeof ( z_values ) ) ; SERIAL_EOL ( ) ;
SERIAL_ECHOLNP GM ( " sizeof(ubl) : " , sizeof ( ubl ) ) ; SERIAL_EOL ( ) ;
SERIAL_ECHOLNP GM ( " z_value[][] size: " , sizeof ( z_values ) ) ; SERIAL_EOL ( ) ;
serial_delay ( 25 ) ;
SERIAL_ECHOLNP AIR ( " EEPROM free for UBL: " , hex_address ( ( void * ) ( settings . meshes_end_index ( ) - settings . meshes_start_index ( ) ) ) ) ;
SERIAL_ECHOLNP GM ( " EEPROM free for UBL: " , hex_address ( ( void * ) ( settings . meshes_end_index ( ) - settings . meshes_start_index ( ) ) ) ) ;
serial_delay ( 50 ) ;
SERIAL_ECHOLNP AIR ( " EEPROM can hold " , settings . calc_num_meshes ( ) , " meshes. \n " ) ;
SERIAL_ECHOLNP GM ( " EEPROM can hold " , settings . calc_num_meshes ( ) , " meshes. \n " ) ;
serial_delay ( 25 ) ;
# endif // UBL_DEVEL_DEBUGGING
@ -1829,7 +1829,7 @@ void unified_bed_leveling::smart_fill_mesh() {
}
if ( ! parser . has_value ( ) | | ! WITHIN ( parser . value_int ( ) , 0 , a - 1 ) ) {
SERIAL_ECHOLNP AIR ( " ?Invalid storage slot. \n ?Use 0 to " , a - 1 ) ;
SERIAL_ECHOLNP GM ( " ?Invalid storage slot. \n ?Use 0 to " , a - 1 ) ;
return ;
}
@ -1838,7 +1838,7 @@ void unified_bed_leveling::smart_fill_mesh() {
float tmp_z_values [ GRID_MAX_POINTS_X ] [ GRID_MAX_POINTS_Y ] ;
settings . load_mesh ( param . KLS_storage_slot , & tmp_z_values ) ;
SERIAL_ECHOLNP AIR ( " Subtracting mesh in slot " , param . KLS_storage_slot , " from current mesh. " ) ;
SERIAL_ECHOLNP GM ( " Subtracting mesh in slot " , param . KLS_storage_slot , " from current mesh. " ) ;
GRID_LOOP ( x , y ) {
z_values [ x ] [ y ] - = tmp_z_values [ x ] [ y ] ;