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

LP-516 gps: issuing a JumpToApp in bootloader mode will not hang board anymore

ssp_dfu guard variable was preventing any user triggered JumpToApp to be fully completed
This commit is contained in:
Philippe Renon 2017-05-03 09:00:37 +02:00
parent 6b09e1a9df
commit a116bd2313

View File

@ -161,10 +161,10 @@ int main()
}
led_pwm_step(period1, sweep_steps1, stopwatch, false);
led_pwm_step(period2, sweep_steps2, stopwatch, true);
JumpToApp |= (stopwatch > BL_WAIT_TIME) && ((DeviceState == BLidle) || (DeviceState == DFUidle));
JumpToApp |= !ssp_dfu && (stopwatch > BL_WAIT_TIME) && ((DeviceState == BLidle) || (DeviceState == DFUidle));
DataDownload(start);
if (JumpToApp == true && !ssp_dfu) {
if (JumpToApp == true) {
jump_to_app();
}
}