🐛 Fix Bed Distance Sensor reading (#24649)
This commit is contained in:
@ -882,7 +882,9 @@ float Probe::probe_at_point(const_float_t rx, const_float_t ry, const ProbePtRai
|
||||
// Move the probe to the starting XYZ
|
||||
do_blocking_move_to(npos, feedRate_t(XY_PROBE_FEEDRATE_MM_S));
|
||||
|
||||
TERN_(BD_SENSOR, return bdl.read());
|
||||
#if ENABLED(BD_SENSOR)
|
||||
return current_position.z - bdl.read(); // Difference between Z-home-relative Z and sensor reading
|
||||
#endif
|
||||
|
||||
float measured_z = NAN;
|
||||
if (!deploy()) {
|
||||
|
Reference in New Issue
Block a user