Browse Source

Tweaks to STM32 headers

pull/1/head
Scott Lahteine 5 years ago
parent
commit
828cc71847
  1. 6
      Marlin/src/HAL/HAL_STM32/watchdog_STM32.cpp
  2. 1
      Marlin/src/HAL/HAL_STM32F1/watchdog_STM32F1.cpp

6
Marlin/src/HAL/HAL_STM32/watchdog_STM32.cpp

@ -22,10 +22,12 @@
#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
#include "../../inc/MarlinConfig.h"
#include "../../inc/MarlinConfigPre.h"
#if ENABLED(USE_WATCHDOG)
#include "../../inc/MarlinConfig.h"
#include "watchdog_STM32.h"
#include <IWatchdog.h>
@ -33,7 +35,7 @@
void watchdog_reset() {
IWatchdog.reload();
#if PIN_EXISTS(LED)
#if DISABLED(PINS_DEBUGGING) && PIN_EXISTS(LED)
TOGGLE(LED_PIN); // heartbeat indicator
#endif
}

1
Marlin/src/HAL/HAL_STM32F1/watchdog_STM32F1.cpp

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

Loading…
Cancel
Save