畸变值为float

This commit is contained in:
13038267101 2023-03-17 22:32:17 +08:00
parent 964f7323a0
commit fbf3377ddd
1 changed files with 3 additions and 3 deletions

View File

@ -1026,7 +1026,7 @@ public:
}
//先默认设置1
float distortion = 1.0;
int setdistortion = *(int*)&distortion;
int setdistortion = distortion;
ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &setdistortion, &len);
@ -1111,8 +1111,8 @@ public:
helper_->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_RESULT, (void *)L"已退出畸变值设置", false);
return -1;
}
int setdistortion = *(int*)&distortion;
int getdistortion = 0;
float setdistortion = distortion;
float getdistortion = 0;
ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &setdistortion, &len);
if (ret != SCANNER_ERR_OK)