Skip to content

Commit 3856037

Browse files
petaflotthinkyhead
authored andcommitted
🔧 Allow float Z_PROBE_LOW_POINT (MarlinFirmware#26711)
1 parent ffbf4a6 commit 3856037

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Marlin/src/inc/SanityCheck.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -1508,9 +1508,7 @@ static_assert(NUM_SERVOS <= NUM_SERVO_PLUGS, "NUM_SERVOS (or some servo index) i
15081508
#endif
15091509
#endif
15101510

1511-
#if Z_PROBE_LOW_POINT > 0
1512-
#error "Z_PROBE_LOW_POINT must be less than or equal to 0."
1513-
#endif
1511+
static_assert(Z_PROBE_LOW_POINT <= 0, "Z_PROBE_LOW_POINT must be less than or equal to 0.");
15141512

15151513
#if ENABLED(PROBE_ACTIVATION_SWITCH)
15161514
#ifndef PROBE_ACTIVATION_SWITCH_STATE

Marlin/src/module/probe.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,10 @@ float Probe::probe_at_point(const_float_t rx, const_float_t ry, const ProbePtRai
10101010

10111011
// If any error occurred stow the probe and set an alert
10121012
if (isnan(measured_z)) {
1013+
// TODO: Disable steppers (unless G29_RETRY_AND_RECOVER or G29_HALT_ON_FAILURE are set).
1014+
// Something definitely went wrong at this point, so it might be a good idea to release the steppers.
1015+
// The user may want to quickly move the carriage or bed by hand to avoid bed damage from the (hot) nozzle.
1016+
// This would also benefit from the contemplated "Audio Alerts" feature.
10131017
stow();
10141018
LCD_MESSAGE(MSG_LCD_PROBING_FAILED);
10151019
#if DISABLED(G29_RETRY_AND_RECOVER)

0 commit comments

Comments
 (0)