调整畸变

This commit is contained in:
13038267101 2023-01-05 18:19:03 +08:00
parent a7a6f80a8d
commit 7f55f4b6a1
1 changed files with 1 additions and 26 deletions

View File

@ -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;
}
/* 分纸强度检测 */