Make sure the dc-data are vaild: set again the auto-request flag inside the CA-plugin.w

This commit is contained in:
Gerhard Hoffmann 2023-11-07 09:33:42 +01:00
parent dfbad69ab1
commit 990d257b09

View File

@ -742,10 +742,15 @@ QStringList Update::getDcSoftAndHardWareVersion() {
}
bool Update::doUpdate(int &displayIndex, QStringList const &filesToWorkOn) {
if (!m_hw->sys_areDCdataValid()) { // must deliver 'true', only then are all
// data from hwapi valid
qCritical() << "ERROR!!! DC DATA NOT VALID";
return false;
int tries = 20;
while (!m_hw->sys_areDCdataValid()) { // must deliver 'true', only then are all
// data from hwapi valid
if (--tries < 0) {
qCritical() << "ERROR!!! DC DATA NOT VALID -> CA-MASTER-PLUGIN NOT CONNECTED";
return false;
}
m_hw->dc_autoRequest(true);
QThread::msleep(500);
}
bool res = false;