Browse Source

Fix manifest load bug

QGC4.4
DonLakeFlyer 5 years ago
parent
commit
f960ce2311
  1. 2
      src/VehicleSetup/FirmwareUpgradeController.cc

2
src/VehicleSetup/FirmwareUpgradeController.cc

@ -901,7 +901,7 @@ void FirmwareUpgradeController::_ardupilotManifestDownloadFinished(QString remot @@ -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;
}

Loading…
Cancel
Save