Skip to content
Snippets Groups Projects
Commit cce49313 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Clean up recent contribs

parent 8b5e51c9
Branches
Tags
No related merge requests found
...@@ -67,14 +67,16 @@ uint8_t HAL_get_reset_source(void) { ...@@ -67,14 +67,16 @@ uint8_t HAL_get_reset_source(void) {
void watchdog_reset() { void watchdog_reset() {
WDT_Feed(); WDT_Feed();
#if !defined(PINS_DEBUGGING) && PIN_EXISTS(LED) #if DISABLED(PINS_DEBUGGING) && PIN_EXISTS(LED)
TOGGLE(LED_PIN); // heart beat indicator TOGGLE(LED_PIN); // heart beat indicator
#endif #endif
} }
#else #else
void HAL_clear_reset_source(void) {} void HAL_clear_reset_source(void) {}
uint8_t HAL_get_reset_source(void) { return RST_POWER_ON; } uint8_t HAL_get_reset_source(void) { return RST_POWER_ON; }
#endif // USE_WATCHDOG #endif // USE_WATCHDOG
#endif // TARGET_LPC1768 #endif // TARGET_LPC1768
...@@ -62,4 +62,3 @@ void setup_endstop_interrupts(void) { ...@@ -62,4 +62,3 @@ void setup_endstop_interrupts(void) {
attachInterrupt(Z_MIN_PROBE_PIN, endstop_ISR, CHANGE); attachInterrupt(Z_MIN_PROBE_PIN, endstop_ISR, CHANGE);
#endif #endif
} }
...@@ -31,10 +31,8 @@ ...@@ -31,10 +31,8 @@
void watchdog_init() { IWatchdog.begin(4000000); } // 4 sec timeout void watchdog_init() { IWatchdog.begin(4000000); } // 4 sec timeout
void watchdog_reset() void watchdog_reset() {
{
IWatchdog.reload(); IWatchdog.reload();
#if PIN_EXISTS(LED) #if PIN_EXISTS(LED)
TOGGLE(LED_PIN); // heartbeat indicator TOGGLE(LED_PIN); // heartbeat indicator
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment