扫描无图时,如果为正常结束则返回正常状态

This commit is contained in:
yangjiaxuan 2023-11-07 18:19:47 +08:00
parent e522398781
commit 77a0c7e176
1 changed files with 3 additions and 0 deletions

View File

@ -1487,6 +1487,9 @@ void hg_scanner_239::thread_get_dves_image(void)
// reset_ = true; // reset_ = true;
// ret = io_->reset(); // ret = io_->reset();
// status_ = SCANNER_ERR_IO; // status_ = SCANNER_ERR_IO;
if (status_ == SCANNER_ERR_DEVICE_STOPPED)
status_ = SCANNER_ERR_OK;
} }
else if (status_ == SCANNER_ERR_TIMEOUT || status_ == SCANNER_ERR_IO || status_ == SCANNER_ERR_DEVICE_STOPPED) else if (status_ == SCANNER_ERR_TIMEOUT || status_ == SCANNER_ERR_IO || status_ == SCANNER_ERR_DEVICE_STOPPED)
status_ = SCANNER_ERR_OK; status_ = SCANNER_ERR_OK;