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:
parent
37a0d2c99e
commit
5a2c53804f
@ -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();
|
||||||
|
@ -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();
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user