Przeglądaj źródła

Tweaks to STM32 headers

Scott Lahteine 6 lat temu
rodzic
commit
828cc71847

+ 4
- 2
Marlin/src/HAL/HAL_STM32/watchdog_STM32.cpp Wyświetl plik

@@ -22,10 +22,12 @@
22 22
 
23 23
 #if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
24 24
 
25
-#include "../../inc/MarlinConfig.h"
25
+#include "../../inc/MarlinConfigPre.h"
26 26
 
27 27
 #if ENABLED(USE_WATCHDOG)
28 28
 
29
+  #include "../../inc/MarlinConfig.h"
30
+
29 31
   #include "watchdog_STM32.h"
30 32
   #include <IWatchdog.h>
31 33
 
@@ -33,7 +35,7 @@
33 35
 
34 36
   void watchdog_reset() {
35 37
     IWatchdog.reload();
36
-    #if PIN_EXISTS(LED)
38
+    #if DISABLED(PINS_DEBUGGING) && PIN_EXISTS(LED)
37 39
       TOGGLE(LED_PIN);  // heartbeat indicator
38 40
     #endif
39 41
   }

+ 0
- 1
Marlin/src/HAL/HAL_STM32F1/watchdog_STM32F1.cpp Wyświetl plik

@@ -56,5 +56,4 @@ void watchdog_init(void) {
56 56
 }
57 57
 
58 58
 #endif // USE_WATCHDOG
59
-
60 59
 #endif // __STM32F1__

Ładowanie…
Anuluj
Zapisz