增加关机功能结果反馈

This commit is contained in:
yangjiaxuan 2024-06-17 15:32:39 +08:00
parent ef5167da81
commit f07104cf6b
1 changed files with 13 additions and 0 deletions

View File

@ -1547,6 +1547,19 @@ public:
int val = 0;
unsigned int len = 0;
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;
}
/* 设置固件语言模式 */