From 75b0b83174f5d03a8c0e19b007792003d6c74321 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 6 Dec 2024 11:51:06 +0100 Subject: [PATCH] Update::updateBinary(): begin with starting "/opt/app/tools/atbupdate/ATBDownloadDCFirmware". --- UpdatePTUDevCtrl/update.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/UpdatePTUDevCtrl/update.cpp b/UpdatePTUDevCtrl/update.cpp index 28f7702..837e467 100644 --- a/UpdatePTUDevCtrl/update.cpp +++ b/UpdatePTUDevCtrl/update.cpp @@ -272,7 +272,14 @@ bool Update::isSerialOpen() const { // bootloader is really not running anymore. */ bool Update::updateBinary(QString const &fileToSendToDC) { - qInfo() << "UPDATING DEVICE CONTROLLER FIRMWARE BINARY" << fileToSendToDC; + + QFile dc("/opt/app/tools/atbupdate/ATBDownloadDCFirmware"); + if (dc.exists()) { + qCritical() << "ERROR: dc-binary does not exist" << fileToSendToDC; + return false; + } + + qInfo() << "updating dc-binary" << fileToSendToDC << "..."; return false;