调整439校正完后扫图失败的问题

This commit is contained in:
yangjiaxuan 2023-07-25 14:41:26 +08:00
parent a8712cfab5
commit f1a595dac1
1 changed files with 2 additions and 0 deletions

View File

@ -1105,6 +1105,7 @@ void hg_scanner_239::thread_correction(void)
{
if (sw.elapsed_s() > 10)
{
is_auto_falt = false;
status_ = SCANNER_ERR_DEVICE_AUTO_FAIL_OVER;
//notify_ui_working_status(hg_log::lang_load(ID_STATU_DESC_SCANNER_ERR_DEVICE_FAIL_OUTTIME), SANE_EVENT_ERROR, ret); // 通信超时
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "设备校正超时 '%s'\n", hg_scanner_err_name(status_));
@ -1132,6 +1133,7 @@ void hg_scanner_239::thread_correction(void)
if (info->Code == 4)
{
is_auto_falt = false;
status_ = SCANNER_ERR_DEVICE_AUTO_FAIL_OVER;
//notify_ui_working_status(buf, SANE_EVENT_STATUS, status_);
break;