From d6cb1ca104aa2f7105c7d0106967726596e81ee6 Mon Sep 17 00:00:00 2001 From: 13038267101 Date: Sat, 31 Dec 2022 12:10:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=B8=E5=8F=98=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/base/test_base.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/base/test_base.cpp b/code/base/test_base.cpp index 12cbb07..3e685fd 100644 --- a/code/base/test_base.cpp +++ b/code/base/test_base.cpp @@ -190,11 +190,13 @@ public: int len = sizeof(buf) / sizeof(buf[0]); wstr.resize(len); wstr = buf; + + SANE_Bool close = false; + unsigned int closelen = sizeof(SANE_Bool); + ret = h->io_control(IO_CTRL_CODE_GET_DPI_COLOR_CHECK_VAL, &close, &closelen);//结束恢复默认 } - SANE_Bool close = false; - unsigned int len = sizeof(SANE_Bool); ret = h->io_control(IO_CTRL_CODE_RESTORE_SETTINGS, NULL, NULL);//结束恢复默认 - ret = h->io_control(IO_CTRL_CODE_GET_DPI_COLOR_CHECK_VAL, &close, &len);//结束恢复默认 + h->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_RESULT, (void*)wstr.c_str(), type); } break;