Commit 75195f8e authored by DonLakeFlyer's avatar DonLakeFlyer

parent 22a75d33
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment