Replace TEST_DC_DOWNLOAD with m_debug.

This commit is contained in:
Gerhard Hoffmann 2025-08-21 10:51:16 +02:00
parent a47dd60e9e
commit 659dc69831

View File

@ -397,9 +397,9 @@ int Update::run() {
qInfo() << "<DC-VERSION>" << Update::dcVersion(m_dcFileName); qInfo() << "<DC-VERSION>" << Update::dcVersion(m_dcFileName);
} }
#if TEST_DC_DOWNLOAD==0 if (!m_debug) {
m_hw->dc_autoRequest(false); m_hw->dc_autoRequest(false);
#endif }
qInfo() << "DC auto request OFF"; qInfo() << "DC auto request OFF";
@ -455,9 +455,10 @@ int Update::run() {
// if starting the bootloader failed // if starting the bootloader failed
qInfo() << nextTimePoint().toUtf8().constData() << "<DC-UPDATE-SUCCESS>"; qInfo() << nextTimePoint().toUtf8().constData() << "<DC-UPDATE-SUCCESS>";
#if TEST_DC_DOWNLOAD==0 if (!m_debug) {
m_hw->dc_autoRequest(true); //restart dc_autoRequest after download else E255! m_hw->dc_autoRequest(true); //restart dc_autoRequest after download else E255!
#endif }
return -(int)Result::SUCCESS; return -(int)Result::SUCCESS;
} }