diff --git a/code/base/test_base.cpp b/code/base/test_base.cpp index 84f1451..a0a8411 100644 --- a/code/base/test_base.cpp +++ b/code/base/test_base.cpp @@ -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; } /* 分纸强度检测 */