Mitigate RPi hosts kernel panic on M997

Work around M997 sometimes causing a kernel panic on the host when sent from a Raspbery Pi, the root cause is currently unknown.
2.0.x
Chris Pepper 4 years ago committed by Scott Lahteine
parent 9437c72ef6
commit bbb49c43e1

@ -63,7 +63,11 @@ int16_t PARSED_PIN_INDEX(const char code, const int16_t dval) {
return ind > -1 ? ind : dval;
}
void flashFirmware(const int16_t) { NVIC_SystemReset(); }
void flashFirmware(const int16_t) {
USB_Connect(FALSE); // USB clear connection
delay(2000); // Give OS time to notice
NVIC_SystemReset();
}
void HAL_clear_reset_source(void) {
TERN_(USE_WATCHDOG, watchdog_clear_timeout_flag());

Loading…
Cancel
Save