This commit is contained in:
parent
8a51440aeb
commit
9255dd89d5
|
@ -246,8 +246,9 @@ QString DeviceManager::getSn()
|
|||
void DeviceManager::setBurnMode()
|
||||
{
|
||||
const wchar_t *p = L"1";
|
||||
func_test_go(HGPDTTOOLDB_NAME_REBOOT_DEVICE, p, m_hg);
|
||||
m_mainwnd->addTestingRef();
|
||||
func_test_go(HGPDTTOOLDB_NAME_REBOOT_DEVICE, p, m_hg);
|
||||
|
||||
}
|
||||
|
||||
void DeviceManager::setSn(QString sn)
|
||||
|
@ -257,8 +258,8 @@ void DeviceManager::setSn(QString sn)
|
|||
std::wstring sn2 = sn.toStdWString();
|
||||
p->cat = WRITE_CAT_SERIALNUM;
|
||||
p->val = (void*)sn2.c_str();
|
||||
func_test_go(WRITE_CFG_NAME, (const wchar_t*)p, m_hg);
|
||||
m_mainwnd->addTestingRef();
|
||||
func_test_go(WRITE_CFG_NAME, (const wchar_t*)p, m_hg);
|
||||
|
||||
setGlobalCfg();
|
||||
|
||||
|
@ -292,20 +293,20 @@ void DeviceManager::setGlobalCfg()
|
|||
int vidpidValue = vidpid.Value;
|
||||
lp->cat = WRITE_CAT_VID_PID;
|
||||
lp->val = (void*)&vidpidValue;
|
||||
func_test_go(WRITE_CFG_NAME, (const wchar_t*)lp, m_hg);
|
||||
m_mainwnd->addTestingRef();
|
||||
func_test_go(WRITE_CFG_NAME, (const wchar_t*)lp, m_hg);
|
||||
|
||||
int speedMode = jsonGlobal.speed_mode ;
|
||||
lp->cat = WRITE_CAT_SPEED;
|
||||
lp->val = (void*)&speedMode;
|
||||
func_test_go(WRITE_CFG_NAME, (const wchar_t*)lp, m_hg);
|
||||
m_mainwnd->addTestingRef();
|
||||
func_test_go(WRITE_CFG_NAME, (const wchar_t*)lp, m_hg);
|
||||
|
||||
int sleepTime = jsonGlobal.sleep_time;
|
||||
lp->cat = WRITE_CAT_SLEEP;
|
||||
lp->val = (void*)&sleepTime;
|
||||
func_test_go(WRITE_CFG_NAME, (const wchar_t*)lp, m_hg);
|
||||
m_mainwnd->addTestingRef();
|
||||
func_test_go(WRITE_CFG_NAME, (const wchar_t*)lp, m_hg);
|
||||
|
||||
delete lp;
|
||||
}
|
||||
|
|
|
@ -574,11 +574,13 @@ void Form_mainInterface::on_pbtn_start_clicked()
|
|||
QString title = item->text();
|
||||
QString name = m_map_title_name.value(title).name;
|
||||
if (m_hg != nullptr)
|
||||
func_test_go(name.toStdWString().c_str(), L"null", m_hg);
|
||||
{
|
||||
updateUiEnabled(false);
|
||||
m_isTesting = true;
|
||||
m_mainwnd->addTestingRef();
|
||||
|
||||
updateUiEnabled(false);
|
||||
m_isTesting = true;
|
||||
m_mainwnd->addTestingRef();
|
||||
func_test_go(name.toStdWString().c_str(), L"null", m_hg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue