瀏覽代碼

Improve RPi host kernel panic mitigation

It was still possible to cause a Kernel panic, this additional 500ms delay before disconnect appears to mitigate it completely.
Chris Pepper 3 年之前
父節點
當前提交
5233e66762
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      Marlin/src/HAL/LPC1768/HAL.cpp

+ 2
- 1
Marlin/src/HAL/LPC1768/HAL.cpp 查看文件

@@ -64,8 +64,9 @@ int16_t PARSED_PIN_INDEX(const char code, const int16_t dval) {
64 64
 }
65 65
 
66 66
 void flashFirmware(const int16_t) {
67
+  delay(500);          // Give OS time to disconnect
67 68
   USB_Connect(false);  // USB clear connection
68
-  delay(2000);         // Give OS time to notice
69
+  delay(1000);         // Give OS time to notice
69 70
   NVIC_SystemReset();
70 71
 }
71 72
 

Loading…
取消
儲存