解决脏污检测第一次勾选或取消勾选时不生效的问题
This commit is contained in:
parent
4a94b460dd
commit
e522398781
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue