Skip to content

Commit

Permalink
BleDev: Fix handling of incorrect bundle version during initial bundl…
Browse files Browse the repository at this point in the history
…e upload

Signed-off-by: Andrew 'Necromant' Andrianov <[email protected]>
  • Loading branch information
nekromant committed Jan 21, 2025
1 parent 872cbb7 commit 9182e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BleDev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ bool BleDev::checkBundleFilePassword(const QFileInfo& fileInfo, QString &passwor
return false;
}
const auto serial = fileParts[SERIAL_FILE_PART].toUInt();
if (!skipDeviceChecks && wsClient->get_hwSerial() != serial)
if (!skipDeviceChecks && (wsClient->get_hwSerial() !=0) && (wsClient->get_hwSerial() != serial))
{
QMessageBox::warning(this, INVALID_BUNDLE_TEXT,
tr("The device serial number is not correct in bundle filename."));
Expand Down

0 comments on commit 9182e60

Please sign in to comment.