解决点击扫描,电机未启动之前就点击取消扫描,设备仍然继续走纸的问题,BUG-801
This commit is contained in:
parent
f30f227860
commit
cfb1431efd
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue