Replace TEST_DC_DOWNLOAD with m_debug.
This commit is contained in:
parent
a47dd60e9e
commit
659dc69831
@ -397,9 +397,9 @@ int Update::run() {
|
||||
qInfo() << "<DC-VERSION>" << Update::dcVersion(m_dcFileName);
|
||||
}
|
||||
|
||||
#if TEST_DC_DOWNLOAD==0
|
||||
if (!m_debug) {
|
||||
m_hw->dc_autoRequest(false);
|
||||
#endif
|
||||
}
|
||||
|
||||
qInfo() << "DC auto request OFF";
|
||||
|
||||
@ -455,9 +455,10 @@ int Update::run() {
|
||||
// if starting the bootloader failed
|
||||
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!
|
||||
#endif
|
||||
}
|
||||
|
||||
return -(int)Result::SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user