Browse Source

Merge pull request #8879 from DonLakeFlyer/ManifestJson

Fix manifest load bug
QGC4.4
Don Gagne 5 years ago committed by GitHub
parent
commit
c72b9e2ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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