From 7f55f4b6a1958e3b4c8f4149e0042eb6fc4b028b Mon Sep 17 00:00:00 2001 From: 13038267101 Date: Thu, 5 Jan 2023 18:19:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=95=B8=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/base/test_base.cpp | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) 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; } /* 分纸强度检测 */