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; }