Unverified Commit 4bec5beb authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8670 from DonLakeFlyer/ParamCache

Cache new metadata if versions are equal
parents 09a98e34 0f40f968
......@@ -1448,9 +1448,9 @@ void ParameterManager::cacheMetaDataFile(const QString& metaDataFile, MAV_AUTOPI
cacheNewFile = true;
} else if (cacheMajorVersion == newMajorVersion) {
// Direct hit on major version in cache:
// Cache new file if newer minor version
// Also delete older cache file
if (newMinorVersion > cacheMinorVersion) {
// Cache new file if newer/equal minor version. We cache if equal to allow flashing test builds with new parameter metadata.
// Also delete older cache file.
if (newMinorVersion >= cacheMinorVersion) {
cacheNewFile = true;
QFile::remove(cacheHit);
}
......
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