From a43d8581d4290fed8941a53b160578de18d8991d Mon Sep 17 00:00:00 2001 From: 13038267101 Date: Mon, 20 Mar 2023 09:20:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8D=8F=E8=AE=AE=E5=91=BD?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/base/test_base.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/base/test_base.cpp b/code/base/test_base.cpp index fd4f82c..40cfa91 100644 --- a/code/base/test_base.cpp +++ b/code/base/test_base.cpp @@ -1028,7 +1028,7 @@ public: float distortion = 1.0; int setdistortion = distortion; - ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &setdistortion, &len); + ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_DEVS_CHECK_VAL, &setdistortion, &len); ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_IMAGE, &type, &len); if (ret != SCANNER_ERR_OK) @@ -1041,7 +1041,7 @@ public: { if (is_distortion_get_image) { - ret = helper_->io_control(IO_CTRL_CODE_GET_DISTORTION_CHECK_VAL, &dis, &llen); + ret = helper_->io_control(IO_CTRL_CODE_GET_PC_DISTORTION_CHECK_VAL, &dis, &llen); break; } else if (cnt == 30) @@ -1114,7 +1114,7 @@ public: float setdistortion = distortion; float getdistortion = 0; - ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &setdistortion, &len); + ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_DEVS_CHECK_VAL, &setdistortion, &len); if (ret != SCANNER_ERR_OK) { return ret; @@ -1174,7 +1174,7 @@ public: { if (is_distortion_get_image) { - ret = helper_->io_control(IO_CTRL_CODE_GET_DISTORTION_CHECK_VAL, &dis, &llen); + ret = helper_->io_control(IO_CTRL_CODE_GET_PC_DISTORTION_CHECK_VAL, &dis, &llen); break; } else if (cnt == 30)