Merge branch 'dev' of http://192.168.10.5:8099/sane/code_twain into dev
This commit is contained in:
commit
8fa74c4f06
|
@ -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