1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-28 06:21:31 +00:00

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.
This commit is contained in:
Chris Pepper 2021-02-07 20:46:24 +00:00 committed by Scott Lahteine
parent d7fbb1512a
commit 243c8b4e1a

View File

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