json里没有设备型号就不去获取,避免拖慢运行速度

This commit is contained in:
yangjiaxuan 2023-11-02 15:12:00 +08:00
parent f98e28b40c
commit bea0d290d6
1 changed files with 10 additions and 7 deletions

View File

@ -444,12 +444,14 @@ void Dialog_InputSerialNum::on_pbtn_checkConfig_clicked()
int sleepTime = getSleepTime(); int sleepTime = getSleepTime();
int vid = getDevVid(); int vid = getDevVid();
int pid = getDevPid(); int pid = getDevPid();
QString deviceModel = getDeviceModel();
QString item; QString item;
bool right = true; bool right = true;
LPWRITECFG lp = new WRITECFG; LPWRITECFG lp = new WRITECFG;
if (!deviceModel_to.isEmpty())
{
QString deviceModel = getDeviceModel();
if (deviceModel_to != deviceModel) if (deviceModel_to != deviceModel)
{ {
item.append(tr("Device model")); item.append(tr("Device model"));
@ -459,6 +461,7 @@ void Dialog_InputSerialNum::on_pbtn_checkConfig_clicked()
QString info = tr("Inconsistent configuration %1detected, please reconfigure, and check again").arg(item); QString info = tr("Inconsistent configuration %1detected, please reconfigure, and check again").arg(item);
addInteractInfo(info, false); addInteractInfo(info, false);
} }
}
if (speedMode_to != speedMode) if (speedMode_to != speedMode)
{ {