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:
parent
fdf7e8858a
commit
d1c19fefbd
@ -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);
|
||||
}
|
||||
|
@ -199,6 +199,7 @@ void jump_to_app()
|
||||
Jump_To_Application();
|
||||
} else {
|
||||
DeviceState = failed_jump;
|
||||
JumpToApp = FALSE;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user