From 06a9eba17798f52129653f4345e74b40bed31251 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 6 Jul 2023 14:32:20 +0200 Subject: [PATCH] Turn auto-request ON in any case. --- update.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/update.cpp b/update.cpp index 2a34d8a..6838ee2 100644 --- a/update.cpp +++ b/update.cpp @@ -795,16 +795,12 @@ bool Update::doUpdate() { } // for (it = openLines.cbegin(); it != openLines.end(); ++it) { - if (serialOpened) { - m_hw->dc_autoRequest(true); - qDebug() << "SET AUTO-REQUEST=TRUE"; - qInfo() << "current dc-hardware-version" << m_hw->dc_getHWversion(); - qInfo() << "current dc-firmware-version" << m_hw->dc_getSWversion(); - closeSerial(); - serialOpened = false; - } + m_hw->dc_autoRequest(true); // ALWAYS turn autoRequest ON + qDebug() << "SET AUTO-REQUEST=TRUE"; - return finishUpdate(linesToWorkOn.size() > 0); + return true; + + // return finishUpdate(linesToWorkOn.size() > 0); } bool Update::finishUpdate(bool swapCtrlFiles) {