Selaa lähdekoodia

Tweaks to STM32 headers

Scott Lahteine 6 vuotta sitten
vanhempi
commit
828cc71847

+ 4
- 2
Marlin/src/HAL/HAL_STM32/watchdog_STM32.cpp Näytä tiedosto

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

+ 0
- 1
Marlin/src/HAL/HAL_STM32F1/watchdog_STM32F1.cpp Näytä tiedosto

56
 }
56
 }
57
 
57
 
58
 #endif // USE_WATCHDOG
58
 #endif // USE_WATCHDOG
59
-
60
 #endif // __STM32F1__
59
 #endif // __STM32F1__

Loading…
Peruuta
Tallenna