瀏覽代碼

Fix LPC1768 build with no watchdog

Fix issue mentioned at https://github.com/MarlinFirmware/Marlin/pull/13587#issuecomment-481737509
Scott Lahteine 5 年之前
父節點
當前提交
d72946a8d7
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      Marlin/src/HAL/HAL_LPC1768/watchdog.cpp

+ 4
- 2
Marlin/src/HAL/HAL_LPC1768/watchdog.cpp 查看文件

@@ -74,8 +74,10 @@ void watchdog_reset() {
74 74
 
75 75
 #else
76 76
 
77
-  void HAL_clear_reset_source(void) {}
78
-  uint8_t HAL_get_reset_source(void) { return RST_POWER_ON; }
77
+void watchdog_init(void) {}
78
+void watchdog_reset(void) {}
79
+void HAL_clear_reset_source(void) {}
80
+uint8_t HAL_get_reset_source(void) { return RST_POWER_ON; }
79 81
 
80 82
 #endif // USE_WATCHDOG
81 83
 

Loading…
取消
儲存