fix to firmware comparison

This commit is contained in:
Dorian Zedler 2020-05-10 18:33:22 +02:00
parent 9d6cf5ab38
commit 7a960fbcfa
Signed by: dorian
GPG key ID: 989DE36109AFA354

View file

@ -413,7 +413,7 @@ bool ScStwClient::isFirmwareUpToDate() {
QString newFirmwareVersion = fileContents.split("<VER>")[1].split("</VER>")[0]; QString newFirmwareVersion = fileContents.split("<VER>")[1].split("</VER>")[0];
QString currentFirmwareVersion = this->firmwareVersion; QString currentFirmwareVersion = this->firmwareVersion;
return ScStw::firmwareCompare(currentFirmwareVersion, newFirmwareVersion) < 0; return ScStw::firmwareCompare(newFirmwareVersion, currentFirmwareVersion) <= 0;
} }
// ------------------------ // ------------------------