Selaa lähdekoodia

Clean up recent contribs

Scott Lahteine 6 vuotta sitten
vanhempi
commit
cce4931342

+ 3
- 1
Marlin/src/HAL/HAL_LPC1768/watchdog.cpp Näytä tiedosto

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

+ 1
- 2
Marlin/src/HAL/HAL_STM32/endstop_interrupts.h Näytä tiedosto

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

+ 3
- 5
Marlin/src/HAL/HAL_STM32/watchdog_STM32.cpp Näytä tiedosto

31
 
31
 
32
   void watchdog_init() { IWatchdog.begin(4000000); } // 4 sec timeout
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
     #if PIN_EXISTS(LED)
36
     #if PIN_EXISTS(LED)
39
-      TOGGLE(LED_PIN);  // heart beat indicator
37
+      TOGGLE(LED_PIN);  // heartbeat indicator
40
     #endif
38
     #endif
41
   }
39
   }
42
 
40
 

Loading…
Peruuta
Tallenna