1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

OP-917 Make reboot over telemetry link works. UserDFU timeouts to the user application when no USB connection is found.

+review OPReview-456
This commit is contained in:
Alessio Morale 2013-05-05 15:15:44 +02:00
parent 37a0d2c99e
commit 5a2c53804f
3 changed files with 3 additions and 6 deletions

View File

@ -156,8 +156,7 @@ int main() {
if (stopwatch > 50 * 1000 * 1000) if (stopwatch > 50 * 1000 * 1000)
stopwatch = 0; stopwatch = 0;
if ((stopwatch > 6 * 1000 * 1000) && (DeviceState if ((stopwatch > 6 * 1000 * 1000) && ((DeviceState == BLidle) || (DeviceState == DFUidle && !USB_connected)))
== BLidle))
JumpToApp = TRUE; JumpToApp = TRUE;
processRX(); processRX();

View File

@ -161,8 +161,7 @@ int main() {
if (stopwatch > 50 * 1000 * 1000) if (stopwatch > 50 * 1000 * 1000)
stopwatch = 0; stopwatch = 0;
if ((stopwatch > 6 * 1000 * 1000) && (DeviceState if ((stopwatch > 6 * 1000 * 1000) && ((DeviceState == BLidle) || (DeviceState == DFUidle && !USB_connected)))
== BLidle))
JumpToApp = true; JumpToApp = true;
processRX(); processRX();

View File

@ -161,8 +161,7 @@ int main() {
if (stopwatch > 50 * 1000 * 1000) if (stopwatch > 50 * 1000 * 1000)
stopwatch = 0; stopwatch = 0;
if ((stopwatch > 6 * 1000 * 1000) && (DeviceState if ((stopwatch > 6 * 1000 * 1000) && ((DeviceState == BLidle) || (DeviceState == DFUidle && !USB_connected)))
== BLidle))
JumpToApp = true; JumpToApp = true;
processRX(); processRX();