Add some output to see if start of the update tool is configured correctly.
This commit is contained in:
		@@ -750,6 +750,8 @@ bool Update::doUpdate(int &displayIndex, QStringList const &filesToWorkOn) {
 | 
				
			|||||||
                + " IS MASTER, BUT ATB-UPDATE-TOOL CALLED WITH libCAmaster.so");
 | 
					                + " IS MASTER, BUT ATB-UPDATE-TOOL CALLED WITH libCAmaster.so");
 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        Utils::printInfoMsg(
 | 
				
			||||||
 | 
					            QString("ATB-UPDATE-TOOL STARTED AS SLAVE OF ") + parentName);
 | 
				
			||||||
    } else
 | 
					    } else
 | 
				
			||||||
    if (Utils::isATBQTRunning()) {  // manual testing
 | 
					    if (Utils::isATBQTRunning()) {  // manual testing
 | 
				
			||||||
        if (m_pluginName.contains("master", Qt::CaseInsensitive)) {
 | 
					        if (m_pluginName.contains("master", Qt::CaseInsensitive)) {
 | 
				
			||||||
@@ -757,12 +759,15 @@ bool Update::doUpdate(int &displayIndex, QStringList const &filesToWorkOn) {
 | 
				
			|||||||
                "ATBQT IS MASTER, BUT ATB-UPDATE-TOOL CALLED WITH libCAmaster.so");
 | 
					                "ATBQT IS MASTER, BUT ATB-UPDATE-TOOL CALLED WITH libCAmaster.so");
 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        Utils::printInfoMsg(
 | 
				
			||||||
 | 
					            "ATB-UPDATE-TOOL STARTED AS SLAVE-SIBLING OF ATBQT-MASTER");
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        if (m_pluginName.contains("slave", Qt::CaseInsensitive)) {
 | 
					        if (m_pluginName.contains("slave", Qt::CaseInsensitive)) {
 | 
				
			||||||
            Utils::printCriticalErrorMsg(
 | 
					            Utils::printCriticalErrorMsg(
 | 
				
			||||||
                "ATB-UPDATE-TOOL CALLED WITH libCAslave.so ALTHOUGH MASTER");
 | 
					                "ATB-UPDATE-TOOL CALLED WITH libCAslave.so ALTHOUGH MASTER");
 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        Utils::printInfoMsg("ATB-UPDATE-TOOL STARTED AS MASTER");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ((serialOpened = openSerial(baudrateMap.value(m_baudrate),
 | 
					        if ((serialOpened = openSerial(baudrateMap.value(m_baudrate),
 | 
				
			||||||
                                       m_baudrate,
 | 
					                                       m_baudrate,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user