Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
0c0a7625
Unverified
Commit
0c0a7625
authored
Jul 07, 2020
by
Don Gagne
Committed by
GitHub
Jul 07, 2020
Browse files
Merge pull request #8888 from DonLakeFlyer/SyncRetry
Flash: Retry sync for all boards
parents
22a75d33
75195f8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VehicleSetup/Bootloader.cc
View file @
0c0a7625
...
...
@@ -705,16 +705,13 @@ bool Bootloader::_syncWorker(void)
bool
Bootloader
::
_sync
(
void
)
{
if
(
_sikRadio
)
{
_port
.
readAll
();
bool
success
=
false
;
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
success
=
_syncWorker
();
}
return
success
;
}
else
{
return
_syncWorker
();
// Sometimes getting sync is flaky, try 3 times
_port
.
readAll
();
bool
success
=
false
;
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
success
=
_syncWorker
();
}
return
success
;
}
bool
Bootloader
::
_get3DRRadioBoardId
(
uint32_t
&
boardID
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment