调整校正超时返回错误码

This commit is contained in:
yangjiaxuan 2023-11-02 18:09:31 +08:00
parent ea2768c16d
commit 5c19147246
1 changed files with 1 additions and 1 deletions

View File

@ -1163,7 +1163,7 @@ void hg_scanner_239::thread_correction(void)
if (sw.elapsed_s() > 10) if (sw.elapsed_s() > 10)
{ {
is_auto_falt = false; is_auto_falt = false;
status_ = SCANNER_ERR_DEVICE_AUTO_FAIL_OVER; status_ = SCANNER_ERR_TIMEOUT;
//notify_ui_working_status(hg_log::lang_load(ID_STATU_DESC_SCANNER_ERR_DEVICE_FAIL_OUTTIME), SANE_EVENT_ERROR, ret); // 通信超时 //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_)); VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "设备校正超时 '%s'\n", hg_scanner_err_name(status_));
break; break;