调整G100 取图过慢,倒是超时

This commit is contained in:
mo1027728827@qq.com 2022-06-08 15:22:02 +08:00
parent 3ffda0a0c3
commit 1102ed3eb8
3 changed files with 7 additions and 6 deletions

View File

@ -83,7 +83,8 @@ fi
cd ../ cd ../
if [ -f ./build/CMakeCache.txt ]; then if [ -f ./build/CMakeCache.txt ]; then
rm -rf ./build/* echo ""
#rm -rf ./build/*
else else
mkdir build mkdir build
fi fi

View File

@ -1458,7 +1458,7 @@ void hg_scanner_239::thread_handle_usb_read(void)
} }
if (ret == SCANNER_ERR_TIMEOUT) if (ret == SCANNER_ERR_TIMEOUT)
{ {
if (++to_cnt > 10) if (++to_cnt > 20)
{ {
status_ = ret; status_ = ret;
notify_ui_working_status("通信超时", SANE_EVENT_ERROR, ret); notify_ui_working_status("通信超时", SANE_EVENT_ERROR, ret);

View File

@ -24,20 +24,20 @@ static struct
std::string rsc; // USB resource, version-addr. e.g. "USB2.0-1" std::string rsc; // USB resource, version-addr. e.g. "USB2.0-1"
} }
g_supporting_devices[] = { g_supporting_devices[] = {
#ifdef OEM_LISICHENG //#ifdef OEM_LISICHENG
{0x31c9, 0x8420, SCANNER_NAME_LSC_G42S, "G426xF", ""} {0x31c9, 0x8420, SCANNER_NAME_LSC_G42S, "G426xF", ""}
, {0x31c9, 0x8520, SCANNER_NAME_LSC_G52S, "G52x0F", ""} , {0x31c9, 0x8520, SCANNER_NAME_LSC_G52S, "G52x0F", ""}
, {0x31c9, 0x8620, SCANNER_NAME_LSC_G62S, "G6290U", ""} , {0x31c9, 0x8620, SCANNER_NAME_LSC_G62S, "G6290U", ""}
, {0x31c9, 0x8629, SCANNER_NAME_LSC_G62S, "G6290U", ""} , {0x31c9, 0x8629, SCANNER_NAME_LSC_G62S, "G6290U", ""}
, {0x31c9, 0x8730, SCANNER_NAME_LSC_G73S, "G73x0U", ""} , {0x31c9, 0x8730, SCANNER_NAME_LSC_G73S, "G73x0U", ""}
, {0x31c9, 0x8739, SCANNER_NAME_LSC_G73S, "G73x0U", ""}, , {0x31c9, 0x8739, SCANNER_NAME_LSC_G73S, "G73x0U", ""},
#endif //#endif
#ifdef OEM_HANWANG //#ifdef OEM_HANWANG
{0x2903, 0x7000, SCANNER_NAME_HW_7000, "HW-74x0WA", ""} {0x2903, 0x7000, SCANNER_NAME_HW_7000, "HW-74x0WA", ""}
, {0x2903, 0x1000, SCANNER_NAME_HW_1060A, "HW-1060A", ""} , {0x2903, 0x1000, SCANNER_NAME_HW_1060A, "HW-1060A", ""}
, {0x2903, 0x8000, SCANNER_NAME_HW_8090F, "HW-8090F", ""} , {0x2903, 0x8000, SCANNER_NAME_HW_8090F, "HW-8090F", ""}
, {0x2903, 0x9000, SCANNER_NAME_HW_9110F, "HW-9110F", ""}, , {0x2903, 0x9000, SCANNER_NAME_HW_9110F, "HW-9110F", ""},
#endif //#endif
{0x3072, 0x100, SCANNER_NAME_HG_G100, "GScanO200", ""} {0x3072, 0x100, SCANNER_NAME_HG_G100, "GScanO200", ""}
, {0x3072, 0x200, SCANNER_NAME_HG_G200, "GScanO200", ""} , {0x3072, 0x200, SCANNER_NAME_HG_G200, "GScanO200", ""}
, {0x3072, 0x300, SCANNER_NAME_HG_G300, "GScanO400", ""} , {0x3072, 0x300, SCANNER_NAME_HG_G300, "GScanO400", ""}