Fix initialize ce scan bug.
This commit is contained in:
@@ -83,7 +83,6 @@ QString getFullScanJson(QObject* obj)
|
||||
|
||||
void DeviceManager::initDevice()
|
||||
{
|
||||
mIsInitializing = true;
|
||||
dmsmq_init();
|
||||
if(JsonObject::Instance()->isDmsSimulator())
|
||||
{
|
||||
@@ -178,6 +177,7 @@ void DeviceManager::initDevice()
|
||||
{
|
||||
if(startCEScan())
|
||||
{
|
||||
mIsInitializing = true;
|
||||
mScanProgressTimer = startTimer(500);
|
||||
}
|
||||
}
|
||||
@@ -288,7 +288,7 @@ void DeviceManager::processScanProgress(const QString& aProgress)
|
||||
case 2:
|
||||
prepareFinishScan(true);
|
||||
break;
|
||||
default:
|
||||
default:
|
||||
prepareFinishScan(false, msg);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user