Skip to content

Commit 369d98f

Browse files
thisiskeithbptoal
authored andcommittedDec 16, 2021
🎨 Fix unused lambda warning (MarlinFirmware#22399)
1 parent e6c58ad commit 369d98f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎Marlin/src/module/probe.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -865,9 +865,11 @@ float Probe::probe_at_point(const_float_t rx, const_float_t ry, const ProbePtRai
865865
#if HAS_CURRENT_HOME(Z)
866866
static int16_t saved_current_Z;
867867
#endif
868-
auto debug_current_on = [](PGM_P const s, const int16_t a, const int16_t b) {
869-
if (DEBUGGING(LEVELING)) { DEBUG_ECHOPGM_P(s); DEBUG_ECHOLNPAIR(" current: ", a, " -> ", b); }
870-
};
868+
#if ((ENABLED(DELTA) && (HAS_CURRENT_HOME(X) || HAS_CURRENT_HOME(Y))) || HAS_CURRENT_HOME(Z))
869+
auto debug_current_on = [](PGM_P const s, const int16_t a, const int16_t b) {
870+
if (DEBUGGING(LEVELING)) { DEBUG_ECHOPGM_P(s); DEBUG_ECHOLNPAIR(" current: ", a, " -> ", b); }
871+
};
872+
#endif
871873
if (onoff) {
872874
#if ENABLED(DELTA)
873875
#if HAS_CURRENT_HOME(X)

0 commit comments

Comments
 (0)
Please sign in to comment.