修复单页扫描BUG
This commit is contained in:
parent
f38467b988
commit
46ffe3834f
|
@ -988,7 +988,7 @@ int hg_scanner_402::writedown_image_configuration(void)
|
|||
if (test_1_paper_)
|
||||
{
|
||||
LOG_INFO(LOG_LEVEL_DEBUG_INFO, "scanning mode: testing ONE paper ...\n");
|
||||
ic.scannum = ic.is_duplex ? 2 : 1;
|
||||
ic.scannum = /*ic.is_duplex ? 2 :*/ 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1721,7 +1721,12 @@ int hg_scanner_402::start(void)
|
|||
VLOG_MINI_2(LOG_LEVEL_WARNING, "failed on SR_GET_ANDROID_STATE(%d) result: %s\n", val, hg_scanner_err_name(ret));
|
||||
return ret;
|
||||
}
|
||||
write_register(0x1000, scan_count_);
|
||||
|
||||
int count = scan_count_;
|
||||
if (test_1_paper_)
|
||||
count = 1;
|
||||
|
||||
write_register(0x1000, count);
|
||||
ret = write_command(SC_START);
|
||||
VLOG_MINI_1(LOG_LEVEL_WARNING, "start result: %s\n", hg_scanner_err_name(ret));
|
||||
|
||||
|
|
Loading…
Reference in New Issue