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) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user