增加关机功能结果反馈
This commit is contained in:
parent
ef5167da81
commit
f07104cf6b
|
@ -1547,6 +1547,19 @@ public:
|
||||||
int val = 0;
|
int val = 0;
|
||||||
unsigned int len = 0;
|
unsigned int len = 0;
|
||||||
int ret = helper_->io_control(IO_CTRL_CODE_SET_DEVS_SHUTDOWN, &val, &len);
|
int ret = helper_->io_control(IO_CTRL_CODE_SET_DEVS_SHUTDOWN, &val, &len);
|
||||||
|
if (SCANNER_ERR_OK != ret)
|
||||||
|
{
|
||||||
|
if (SCANNER_ERR_DEVICE_NOT_SUPPORT == ret)
|
||||||
|
{
|
||||||
|
helper_->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_RESULT, (void*)(L"设备固件不支持"), false);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
helper_->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_RESULT, (void*)(L"关机失败"), false);
|
||||||
|
}
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
/* 设置固件语言模式 */
|
/* 设置固件语言模式 */
|
||||||
|
|
Loading…
Reference in New Issue