diff --git a/code/base/test_base.cpp b/code/base/test_base.cpp index 99fc885..1204d09 100644 --- a/code/base/test_base.cpp +++ b/code/base/test_base.cpp @@ -1022,7 +1022,12 @@ public: { ret = helper_->io_control(IO_CTRL_CODE_SET_DPI, &dpi, &llen); } - + //先默认设置1 + float distortion = 1.0; + int setdistortion = *(int*)&distortion; + + ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &setdistortion, &len); + ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_IMAGE, &type, &len); if (ret != SCANNER_ERR_OK) { @@ -1107,10 +1112,6 @@ public: int setdistortion = *(int*)&distortion; int getdistortion = 0; - //先默认设置1 - int in = 1; - ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &in, &len); - ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &setdistortion, &len); if (ret != SCANNER_ERR_OK) {