Ver código fonte

Watchdog conditional for LPC

Scott Lahteine 7 anos atrás
pai
commit
b939a2e88c
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      Marlin/src/HAL/HAL_LPC1768/watchdog.cpp

+ 4
- 0
Marlin/src/HAL/HAL_LPC1768/watchdog.cpp Ver arquivo

@@ -24,6 +24,8 @@
24 24
 
25 25
 #include "../../inc/MarlinConfig.h"
26 26
 
27
+#if ENABLED(USE_WATCHDOG)
28
+
27 29
 #include "lpc17xx_wdt.h"
28 30
 #include "watchdog.h"
29 31
 
@@ -48,4 +50,6 @@ void watchdog_reset() {
48 50
   #endif
49 51
 }
50 52
 
53
+#endif // USE_WATCHDOG
54
+
51 55
 #endif // TARGET_LPC1768

Carregando…
Cancelar
Salvar