diff --git a/src/VehicleSetup/FirmwareUpgradeController.cc b/src/VehicleSetup/FirmwareUpgradeController.cc index 9a3e5dfd170d7a0c6a7b283015ea01312d7246d1..58a2adc893a3cd526b323c3759315a3a190a8114 100644 --- a/src/VehicleSetup/FirmwareUpgradeController.cc +++ b/src/VehicleSetup/FirmwareUpgradeController.cc @@ -901,7 +901,7 @@ void FirmwareUpgradeController::_ardupilotManifestDownloadFinished(QString remot QString errorString; QJsonDocument doc; - if (JsonHelper::isJsonFile(jsonFileName, doc, errorString)) { + if (!JsonHelper::isJsonFile(jsonFileName, doc, errorString)) { qCWarning(FirmwareUpgradeLog) << "Json file read failed" << errorString; return; }