补充休眠时传递值为-1的情况

This commit is contained in:
yangjiaxuan 2023-07-07 17:29:32 +08:00
parent c32ef38bf9
commit 74830669e8
1 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,8 @@ class test
{ {
power = (SANE_Power)i; power = (SANE_Power)i;
} }
else
power = SANE_POWER_NONE;
} }
int ret = helper_->io_control(IO_CTRL_CODE_SET_POWER_LEVEL, &power, &len); int ret = helper_->io_control(IO_CTRL_CODE_SET_POWER_LEVEL, &power, &len);
if (ret != SCANNER_ERR_OK) if (ret != SCANNER_ERR_OK)