解决点击扫描,电机未启动之前就点击取消扫描,设备仍然继续走纸的问题,BUG-801

This commit is contained in:
yangjiaxuan 2023-12-01 16:28:36 +08:00
parent f30f227860
commit cfb1431efd
1 changed files with 2 additions and 0 deletions

View File

@ -4321,6 +4321,8 @@ int hg_scanner::read_image_data(unsigned char* buf, int* len)
int hg_scanner::stop(void)
{
int ret = SCANNER_ERR_OK;
if (usb_img_index_ == 0)
std::this_thread::sleep_for(std::chrono::milliseconds(500));//BUG-801
user_cancel_ = true;
ret = do_stop();