调整畸变
This commit is contained in:
parent
a7a6f80a8d
commit
7f55f4b6a1
|
@ -918,32 +918,7 @@ public:
|
|||
{
|
||||
return ret;
|
||||
}
|
||||
ret = helper_->io_control(IO_CTRL_CODE_GET_DISTORTION_DEVS_CHECK_VAL, &getdistortion, &len);
|
||||
if (ret != SCANNER_ERR_OK)
|
||||
{
|
||||
return ret;
|
||||
}
|
||||
wchar_t buf[128];
|
||||
if (setdistortion != getdistortion)
|
||||
{
|
||||
wchar_t buf[30] = L"设置畸变值失败...现在畸变值是:";
|
||||
wchar_t c[10];
|
||||
float f = *(float*)&getdistortion;
|
||||
wsprintfW(c, L"%fppm", f);
|
||||
wcscat(buf, c);
|
||||
|
||||
helper_->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_RESULT, buf, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
wchar_t buf[30] = L"设置畸变值成功...现在畸变值是:";
|
||||
wchar_t c[10];
|
||||
float f = *(float*)&getdistortion;
|
||||
wsprintfW(c, L"%fppm", f);
|
||||
wcscat(buf, c);
|
||||
|
||||
helper_->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_RESULT, buf, false);
|
||||
}
|
||||
helper_->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_RESULT, (void *)L"设置畸变值完成", true);
|
||||
return ret;
|
||||
}
|
||||
/* 分纸强度检测 */
|
||||
|
|
Loading…
Reference in New Issue