Browse Source

Clean up recent contribs

Scott Lahteine 6 years ago
parent
commit
cce4931342

+ 3
- 1
Marlin/src/HAL/HAL_LPC1768/watchdog.cpp View File

@@ -67,14 +67,16 @@ uint8_t HAL_get_reset_source(void) {
67 67
 
68 68
 void watchdog_reset() {
69 69
   WDT_Feed();
70
-  #if !defined(PINS_DEBUGGING) && PIN_EXISTS(LED)
70
+  #if DISABLED(PINS_DEBUGGING) && PIN_EXISTS(LED)
71 71
     TOGGLE(LED_PIN);  // heart beat indicator
72 72
   #endif
73 73
 }
74 74
 
75 75
 #else
76
+
76 77
   void HAL_clear_reset_source(void) {}
77 78
   uint8_t HAL_get_reset_source(void) { return RST_POWER_ON; }
79
+
78 80
 #endif // USE_WATCHDOG
79 81
 
80 82
 #endif // TARGET_LPC1768

+ 1
- 2
Marlin/src/HAL/HAL_STM32/endstop_interrupts.h View File

@@ -57,9 +57,8 @@ void setup_endstop_interrupts(void) {
57 57
   #endif
58 58
   #if HAS_Z3_MIN
59 59
     attachInterrupt(Z3_MIN_PIN, endstop_ISR, CHANGE);
60
-  #endif  
60
+  #endif
61 61
   #if HAS_Z_MIN_PROBE_PIN
62 62
     attachInterrupt(Z_MIN_PROBE_PIN, endstop_ISR, CHANGE);
63 63
   #endif
64 64
 }
65
-

+ 3
- 5
Marlin/src/HAL/HAL_STM32/watchdog_STM32.cpp View File

@@ -31,12 +31,10 @@
31 31
 
32 32
   void watchdog_init() { IWatchdog.begin(4000000); } // 4 sec timeout
33 33
 
34
-  void watchdog_reset() 
35
-  {
36
-    IWatchdog.reload(); 
37
-
34
+  void watchdog_reset() {
35
+    IWatchdog.reload();
38 36
     #if PIN_EXISTS(LED)
39
-      TOGGLE(LED_PIN);  // heart beat indicator
37
+      TOGGLE(LED_PIN);  // heartbeat indicator
40 38
     #endif
41 39
   }
42 40
 

Loading…
Cancel
Save