设备离线时扫描单张,增加设备离线提示;BUG-810
This commit is contained in:
parent
24d05a6441
commit
7054ab7bdc
|
@ -1863,7 +1863,10 @@ void huagao_ds::init_support_caps(void)
|
|||
count /= 2;
|
||||
}
|
||||
SET_SANE_OPT_EX(ret, scanner_, scan_count, &count);
|
||||
return ret == SCANNER_ERR_OK ? success() : badValue();
|
||||
if (ret == SCANNER_ERR_OK)
|
||||
return success();
|
||||
else
|
||||
return {ReturnCode::Failure, huagao_ds::condition_code_from_hg_error(ret)};
|
||||
}
|
||||
std::vector<int> count;
|
||||
Int16 tmp_count = 0;
|
||||
|
|
Loading…
Reference in New Issue