Ver código fonte

🎨 Fix unused lambda warning (#22399)

Keith Bennett 2 anos atrás
pai
commit
2d4be74db9
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 5 adições e 3 exclusões
  1. 5
    3
      Marlin/src/module/probe.cpp

+ 5
- 3
Marlin/src/module/probe.cpp Ver arquivo

865
       #if HAS_CURRENT_HOME(Z)
865
       #if HAS_CURRENT_HOME(Z)
866
         static int16_t saved_current_Z;
866
         static int16_t saved_current_Z;
867
       #endif
867
       #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
871
       if (onoff) {
873
       if (onoff) {
872
         #if ENABLED(DELTA)
874
         #if ENABLED(DELTA)
873
           #if HAS_CURRENT_HOME(X)
875
           #if HAS_CURRENT_HOME(X)

Carregando…
Cancelar
Salvar