@@ -744,8 +744,8 @@ float Probe::run_z_probe(const bool sanity_check/*=true*/) {
744744 if (try_to_probe (PSTR (" FAST" ), z_probe_low_point, z_probe_fast_mm_s,
745745 sanity_check, Z_CLEARANCE_BETWEEN_PROBES) ) return NAN;
746746
747- const float first_probe_z = DIFF_TERN (HAS_DELTA_SENSORLESS_PROBING, current_position.z , largest_sensorless_adj);
748- if (DEBUGGING (LEVELING)) DEBUG_ECHOLNPGM (" 1st Probe Z:" , first_probe_z );
747+ const float z1 = DIFF_TERN (HAS_DELTA_SENSORLESS_PROBING, current_position.z , largest_sensorless_adj);
748+ if (DEBUGGING (LEVELING)) DEBUG_ECHOLNPGM (" 1st Probe Z:" , z1 );
749749
750750 // Raise to give the probe clearance
751751 do_blocking_move_to_z (current_position.z + Z_CLEARANCE_MULTI_PROBE, z_probe_fast_mm_s);
@@ -754,7 +754,7 @@ float Probe::run_z_probe(const bool sanity_check/*=true*/) {
754754
755755 // If the nozzle is well over the travel height then
756756 // move down quickly before doing the slow probe
757- const float z = Z_CLEARANCE_DEPLOY_PROBE + 5.0 + (offset.z < 0 ? -offset.z : 0 );
757+ const float z = ( Z_CLEARANCE_DEPLOY_PROBE) + 5 .0f + (offset.z < 0 ? -offset.z : 0 );
758758 if (current_position.z > z) {
759759 // Probe down fast. If the probe never triggered, raise for probe clearance
760760 if (!probe_down_to_z (z, z_probe_fast_mm_s))
@@ -839,10 +839,10 @@ float Probe::run_z_probe(const bool sanity_check/*=true*/) {
839839
840840 const float z2 = DIFF_TERN (HAS_DELTA_SENSORLESS_PROBING, current_position.z , largest_sensorless_adj);
841841
842- if (DEBUGGING (LEVELING)) DEBUG_ECHOLNPGM (" 2nd Probe Z:" , z2, " Discrepancy:" , first_probe_z - z2);
842+ if (DEBUGGING (LEVELING)) DEBUG_ECHOLNPGM (" 2nd Probe Z:" , z2, " Discrepancy:" , z1 - z2);
843843
844844 // Return a weighted average of the fast and slow probes
845- const float measured_z = (z2 * 3.0 + first_probe_z * 2.0 ) * 0.2 ;
845+ const float measured_z = (z2 * 3 .0f + z1 * 2 .0f ) * 0 .2f ;
846846
847847 #else
848848
0 commit comments