调整协议命名

This commit is contained in:
13038267101 2023-03-20 09:20:08 +08:00
parent fbf3377ddd
commit a43d8581d4
1 changed files with 4 additions and 4 deletions

View File

@ -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)