调整非D8设备一直报尺寸检测不支持

This commit is contained in:
13038267101 2023-02-16 15:57:49 +08:00
parent 6929807a48
commit 6540b8707d
1 changed files with 7 additions and 6 deletions

View File

@ -300,7 +300,7 @@ int hg_scanner_300::start(void)
{
return ret;
}
printf_devconfig();
//printf_devconfig();
USBCB usb = { setting3288dsp::START_COMMAND, img_conf_.scannum, 0};
ret = writeusb(usb);
//io_->set_timeout(500);
@ -382,12 +382,10 @@ int hg_scanner_300::get_scanner_status(USBCB &usb)
int ret = SCANNER_ERR_OK;
usb = { setting3288dsp::GET_DSP_STATUS, 0, 0};
io_->set_timeout(500); //必要延时,且不能小于这个数值
ret = writeusb(usb);
if (ret != SCANNER_ERR_OK)
return ret;
io_->set_timeout(500); //必要延时,且不能小于这个数值
ret = readusb(usb);
@ -501,7 +499,10 @@ int hg_scanner_300::writedown_device_configuration(bool type,setting_hardware::H
USBCB usbcb = { setting3288dsp::CONFIGURED_DATA, d->value, 0};
len = sizeof(USBCB);
ret = io_->write_bulk(&usbcb,&len);
if (type)
{
printf_devconfig(d);
}
VLOG_MINI_1(LOG_LEVEL_WARNING, "writedown_device_configuration is .(%s)\n", hg_scanner_err_name(ret));
return ret;
@ -545,7 +546,7 @@ int hg_scanner_300::on_paper_changed(int& paper)
}
int hg_scanner_300::on_paper_check_changed(bool& check)
{
if (!is_kernelsnap3288_230210_)
if (!is_kernelsnap3288_230210_ && check)
{
check = false;
notify_ui_working_status(hg_log::lang_load(ID_STATU_DESC_SCANNER_ERR_DEVICE_NOT_SUPPORT), SANE_EVENT_ERROR, status_);