From b93a1fe88141adf095bab09006b473205f597465 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Tue, 14 Apr 2015 11:30:55 +0200 Subject: Do not compute STM32CRC - use one from manifest.json Fixes #47 --- daemon/manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon/manager.cpp') 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 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"; -- cgit v1.2.3