Replace TEST_DC_DOWNLOAD with m_debug.
This commit is contained in:
		@@ -397,9 +397,9 @@ int Update::run() {
 | 
			
		||||
        qInfo() << "<DC-VERSION>" << 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() << "<DC-UPDATE-SUCCESS>";
 | 
			
		||||
 | 
			
		||||
#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;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user