调整G400设备打开之后出现io错误的问题
This commit is contained in:
parent
74ccee0ee4
commit
5f5054b07b
|
@ -276,8 +276,8 @@ int hg_scanner_300::discard_all_images(void)
|
|||
std::lock_guard<std::mutex> lock(io_lock_);
|
||||
ret = io_->read_bulk(&str[0], &block);
|
||||
}
|
||||
this_thread::sleep_for(chrono::milliseconds(100));
|
||||
if (cnt > 5)
|
||||
this_thread::sleep_for(chrono::milliseconds(1000));
|
||||
if (cnt > 10)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
@ -298,7 +298,7 @@ int hg_scanner_300::start(void)
|
|||
return SCANNER_ERR_DEVICE_DEVS_BOOTING;
|
||||
}
|
||||
|
||||
discard_all_images();
|
||||
//discard_all_images();
|
||||
bool handled = false;
|
||||
int ret = try_third_app_handle_start(handled),
|
||||
count = -1,
|
||||
|
@ -716,7 +716,7 @@ int hg_scanner_300::initdevice()
|
|||
break;
|
||||
}
|
||||
this_thread::sleep_for(chrono::milliseconds(800));
|
||||
set_kernelsnap_ver();
|
||||
//set_kernelsnap_ver();
|
||||
}
|
||||
|
||||
set_kernelsnap_ver();
|
||||
|
|
Loading…
Reference in New Issue