调整:在取图过程中,如果usb断开则停止扫描并增加提示

This commit is contained in:
yangjiaxuan 2023-12-05 11:33:27 +08:00
parent 3fadf2de42
commit fea65386e8
3 changed files with 15 additions and 0 deletions

View File

@ -1538,6 +1538,11 @@ void hg_scanner_239::thread_get_dves_image(void)
// error handling ...
VLOG_MINI_4(LOG_LEVEL_DEBUG_INFO, "Read HGEIntInfo: From = %d, Code = %d, Img_Index = %d, status = %s\n", info->From, info->Code, info->Img_Index, hg_scanner_err_description(status_));
}
if (SCANNER_ERR_DEVICE_NOT_FOUND == ret)
{
break;
}
}
this_thread::sleep_for(chrono::milliseconds(10));
// stop 通过int端点返回 如果不反回则是固件问题,软件不做处理

View File

@ -305,6 +305,11 @@ void hg_scanner_300::thread_handle_usb_read(void)
}
}
this_thread::sleep_for(chrono::milliseconds(10));
if (SCANNER_ERR_DEVICE_NOT_FOUND == ret)
{
break;
}
}
VLOG_MINI_2(LOG_LEVEL_DEBUG_INFO, "USB thread exit with code: %s, status = %s\n", hg_scanner_err_name(ret), hg_scanner_err_description(status_));
}

View File

@ -256,6 +256,11 @@ void hg_scanner_306::thread_handle_usb_read(void)
}
}
this_thread::sleep_for(chrono::milliseconds(10));
if (SCANNER_ERR_DEVICE_NOT_FOUND == ret)
{
break;
}
}
VLOG_MINI_2(LOG_LEVEL_DEBUG_INFO, "USB thread exit with code: %s, status = %s\n", hg_scanner_err_name(ret), hg_scanner_err_description(status_));
}