summaryrefslogtreecommitdiff
path: root/daemon/manager.cpp
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2015-04-14 11:30:55 +0200
committerTomasz Sterna <tomek@xiaoka.com>2015-04-14 11:30:55 +0200
commitb93a1fe88141adf095bab09006b473205f597465 (patch)
treeff9885578c4d3f5bbef9b0d9c362ec9f04c2c8bd /daemon/manager.cpp
parent78d1697cd63033244304f7794cf9157029e4fdb5 (diff)
Do not compute STM32CRC - use one from manifest.json
Fixes #47
Diffstat (limited to 'daemon/manager.cpp')
-rw-r--r--daemon/manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/manager.cpp b/daemon/manager.cpp
index 345fb1d..db183bd 100644
--- a/daemon/manager.cpp
+++ b/daemon/manager.cpp
@@ -376,14 +376,14 @@ bool Manager::uploadFirmware(bool recovery, const QString &file)
return true;
}
- upload->uploadFirmwareResources(resourceFile.data(),
+ upload->uploadFirmwareResources(resourceFile.data(), bundle.crcFile(Bundle::RESOURCES),
[this, recovery, bundle, resourceFile]() {
qCDebug(l) << "firmware resource upload succesful";
resourceFile->close();
// Proceed to upload the resource file
QSharedPointer<QIODevice> binaryFile(bundle.openFile(Bundle::BINARY));
if (binaryFile) {
- upload->uploadFirmwareBinary(recovery, binaryFile.data(),
+ upload->uploadFirmwareBinary(recovery, binaryFile.data(), bundle.crcFile(Bundle::BINARY),
[this, binaryFile]() {
binaryFile->close();
qCDebug(l) << "firmware binary upload succesful";