Make sure the dc-data are vaild: set again the auto-request flag inside the CA-plugin.w
This commit is contained in:
parent
dfbad69ab1
commit
990d257b09
13
update.cpp
13
update.cpp
@ -742,10 +742,15 @@ QStringList Update::getDcSoftAndHardWareVersion() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Update::doUpdate(int &displayIndex, QStringList const &filesToWorkOn) {
|
bool Update::doUpdate(int &displayIndex, QStringList const &filesToWorkOn) {
|
||||||
if (!m_hw->sys_areDCdataValid()) { // must deliver 'true', only then are all
|
int tries = 20;
|
||||||
// data from hwapi valid
|
while (!m_hw->sys_areDCdataValid()) { // must deliver 'true', only then are all
|
||||||
qCritical() << "ERROR!!! DC DATA NOT VALID";
|
// data from hwapi valid
|
||||||
return false;
|
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;
|
bool res = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user