From adfb358e128a918789e2659df19bc60f6d30070c Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Sun, 10 Sep 2023 16:51:36 +0200 Subject: [PATCH] Add some output to see if start of the update tool is configured correctly. --- update.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update.cpp b/update.cpp index 0ae07e0..92865fd 100644 --- a/update.cpp +++ b/update.cpp @@ -750,6 +750,8 @@ bool Update::doUpdate(int &displayIndex, QStringList const &filesToWorkOn) { + " IS MASTER, BUT ATB-UPDATE-TOOL CALLED WITH libCAmaster.so"); return false; } + Utils::printInfoMsg( + QString("ATB-UPDATE-TOOL STARTED AS SLAVE OF ") + parentName); } else if (Utils::isATBQTRunning()) { // manual testing if (m_pluginName.contains("master", Qt::CaseInsensitive)) { @@ -757,12 +759,15 @@ bool Update::doUpdate(int &displayIndex, QStringList const &filesToWorkOn) { "ATBQT IS MASTER, BUT ATB-UPDATE-TOOL CALLED WITH libCAmaster.so"); return false; } + Utils::printInfoMsg( + "ATB-UPDATE-TOOL STARTED AS SLAVE-SIBLING OF ATBQT-MASTER"); } else { if (m_pluginName.contains("slave", Qt::CaseInsensitive)) { Utils::printCriticalErrorMsg( "ATB-UPDATE-TOOL CALLED WITH libCAslave.so ALTHOUGH MASTER"); return false; } + Utils::printInfoMsg("ATB-UPDATE-TOOL STARTED AS MASTER"); if ((serialOpened = openSerial(baudrateMap.value(m_baudrate), m_baudrate,