diff --git a/src/VehicleSetup/Bootloader.cc b/src/VehicleSetup/Bootloader.cc index b7051551d66da69e24a1a5ca16adf9ae35f75f98..35cb960fbd3bb17d5dae484d4a962d59d7658a13 100644 --- a/src/VehicleSetup/Bootloader.cc +++ b/src/VehicleSetup/Bootloader.cc @@ -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)