bootloader: use software reset instead of jump (#5823)

fixes #5627
This commit is contained in:
Raphael Coeffic
2018-04-12 20:49:50 +04:00
committed by Andre Bernet
parent 39c5d65f76
commit 7b12c99a0b
@@ -507,9 +507,21 @@ int main()
}
if (state == ST_REBOOT) {
// Jump to proper application address
lcdClear();
lcdRefresh();
lcdRefreshWait();
#if !defined(EEPROM)
// Use jump on radios with emergency mode
// to avoid triggering it with a soft reset
// Jump to proper application address
jumpTo(APP_START_ADDRESS);
#else
// Use software reset everywhere else
NVIC_SystemReset();
#endif
}
}