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;