From e522398781b0383f054ad80242fe0e64370f1ece Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Tue, 7 Nov 2023 17:02:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=84=8F=E6=B1=A1=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E7=AC=AC=E4=B8=80=E6=AC=A1=E5=8B=BE=E9=80=89=E6=88=96?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=8B=BE=E9=80=89=E6=97=B6=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgdriver/hgdev/hg_scanner_300.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hgdriver/hgdev/hg_scanner_300.cpp b/hgdriver/hgdev/hg_scanner_300.cpp index 48f7ef5..7b79b7f 100644 --- a/hgdriver/hgdev/hg_scanner_300.cpp +++ b/hgdriver/hgdev/hg_scanner_300.cpp @@ -622,7 +622,6 @@ int hg_scanner_300::writedown_device_configuration(bool type,setting_hardware::H } size = papersize.GetPaperSize(TwSS::A4, 200, img_conf_.paperAlign); dsp_config.params_3288.dstHeight = (int)((size.cy + 200) / 100); - dsp_config.params_3288.dirty_detect = is_lens_dirty; USBCB usbcb = { setting3288dsp::CONFIGURED_DATA, d->value, 0}; len = sizeof(USBCB); @@ -843,6 +842,7 @@ void hg_scanner_300::printf_devconfig(setting_hardware::HGSCANCONF_3288 *d) VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO,"dsp_config.params_3288.reversed1:%d\r\n",d->params_3288.reversed1); VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO,"dsp_config.params_3288.reversed2:%d\r\n",d->params_3288.reversed2); VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO,"dsp_config.params_3288.enableSizeDetect:%d\r\n",d->params_3288.enableSizeDetect); + VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "dsp_config.params_3288.dirty_detect:%d\r\n", d->params_3288.dirty_detect); VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO,"dsp_config.params_3288.value:%d\r\n",d->value); } @@ -1246,6 +1246,7 @@ int hg_scanner_300::on_detect_lens_dirty(bool &type) return SCANNER_ERR_DEVICE_NOT_SUPPORT; is_lens_dirty = type; + dsp_config.params_3288.dirty_detect = type; return SCANNER_ERR_OK; } int hg_scanner_300::on_get_feedmode(int &feedmode)