From 659dc698316b303e9652fbffaa059d7952ad47ae Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 21 Aug 2025 10:51:16 +0200 Subject: [PATCH] Replace TEST_DC_DOWNLOAD with m_debug. --- DownloadDCFirmware/update.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/DownloadDCFirmware/update.cpp b/DownloadDCFirmware/update.cpp index 79777ee..71e73c7 100644 --- a/DownloadDCFirmware/update.cpp +++ b/DownloadDCFirmware/update.cpp @@ -397,9 +397,9 @@ int Update::run() { qInfo() << "" << Update::dcVersion(m_dcFileName); } -#if TEST_DC_DOWNLOAD==0 - m_hw->dc_autoRequest(false); -#endif + if (!m_debug) { + m_hw->dc_autoRequest(false); + } qInfo() << "DC auto request OFF"; @@ -455,9 +455,10 @@ int Update::run() { // if starting the bootloader failed qInfo() << nextTimePoint().toUtf8().constData() << ""; -#if TEST_DC_DOWNLOAD==0 - m_hw->dc_autoRequest(true); //restart dc_autoRequest after download else E255! -#endif + if (!m_debug) { + m_hw->dc_autoRequest(true); //restart dc_autoRequest after download else E255! + } + return -(int)Result::SUCCESS; }