Clean up recent contribs
This commit is contained in:
		@@ -67,14 +67,16 @@ uint8_t HAL_get_reset_source(void) {
 | 
			
		||||
 | 
			
		||||
void watchdog_reset() {
 | 
			
		||||
  WDT_Feed();
 | 
			
		||||
  #if !defined(PINS_DEBUGGING) && PIN_EXISTS(LED)
 | 
			
		||||
  #if DISABLED(PINS_DEBUGGING) && PIN_EXISTS(LED)
 | 
			
		||||
    TOGGLE(LED_PIN);  // heart beat indicator
 | 
			
		||||
  #endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#else
 | 
			
		||||
 | 
			
		||||
  void HAL_clear_reset_source(void) {}
 | 
			
		||||
  uint8_t HAL_get_reset_source(void) { return RST_POWER_ON; }
 | 
			
		||||
 | 
			
		||||
#endif // USE_WATCHDOG
 | 
			
		||||
 | 
			
		||||
#endif // TARGET_LPC1768
 | 
			
		||||
 
 | 
			
		||||
@@ -57,9 +57,8 @@ void setup_endstop_interrupts(void) {
 | 
			
		||||
  #endif
 | 
			
		||||
  #if HAS_Z3_MIN
 | 
			
		||||
    attachInterrupt(Z3_MIN_PIN, endstop_ISR, CHANGE);
 | 
			
		||||
  #endif  
 | 
			
		||||
  #endif
 | 
			
		||||
  #if HAS_Z_MIN_PROBE_PIN
 | 
			
		||||
    attachInterrupt(Z_MIN_PROBE_PIN, endstop_ISR, CHANGE);
 | 
			
		||||
  #endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -31,12 +31,10 @@
 | 
			
		||||
 | 
			
		||||
  void watchdog_init() { IWatchdog.begin(4000000); } // 4 sec timeout
 | 
			
		||||
 | 
			
		||||
  void watchdog_reset() 
 | 
			
		||||
  {
 | 
			
		||||
    IWatchdog.reload(); 
 | 
			
		||||
 | 
			
		||||
  void watchdog_reset() {
 | 
			
		||||
    IWatchdog.reload();
 | 
			
		||||
    #if PIN_EXISTS(LED)
 | 
			
		||||
      TOGGLE(LED_PIN);  // heart beat indicator
 | 
			
		||||
      TOGGLE(LED_PIN);  // heartbeat indicator
 | 
			
		||||
    #endif
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user