1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

LP-512 Fixed bootloader and dfu to be able to go into proper rescue mode without having *any* firmware flashed.

This commit is contained in:
Vladimir Zidar 2017-05-22 16:32:46 +02:00
parent fdf7e8858a
commit d1c19fefbd
2 changed files with 3 additions and 1 deletions

View File

@ -157,7 +157,8 @@ void processComand(uint8_t *xReceive_Buffer)
switch (Command) {
case EnterDFU:
if (((DeviceState == BLidle) && (Data0 < numberOfDevices))
|| (DeviceState == DFUidle)) {
|| (DeviceState == DFUidle)
|| (DeviceState == failed_jump)) {
if (Data0 > 0) {
OPDfuIni(true);
}

View File

@ -199,6 +199,7 @@ void jump_to_app()
Jump_To_Application();
} else {
DeviceState = failed_jump;
JumpToApp = FALSE;
return;
}
}