diff --git a/code/base/test_base.cpp b/code/base/test_base.cpp index 3bd60fe..12cbb07 100644 --- a/code/base/test_base.cpp +++ b/code/base/test_base.cpp @@ -191,7 +191,10 @@ public: wstr.resize(len); wstr = buf; } - + 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;