屏蔽其他ome厂商锁定功能

This commit is contained in:
13038267101 2023-01-04 13:53:04 +08:00
parent 7db6c95d37
commit 576b633d5c
3 changed files with 16 additions and 5 deletions

View File

@ -224,7 +224,11 @@ hg_scanner::hg_scanner(ScannerSerial serial
thread_usb_read_.reset(new std::thread(&hg_scanner::thread_handle_usb, this));
thread_img_handle_.reset(new std::thread(&hg_scanner::thread_image_handle, this));
#ifdef OEM_HUAGAO
thread_devslock_handle_.reset(new std::thread(&hg_scanner::thread_devslock_handle, this));
#endif
ImagePrc_pHandle_ = hg_imgproc::init(pid_, isx86_Advan_);;
}
hg_scanner::~hg_scanner()
@ -236,8 +240,12 @@ hg_scanner::~hg_scanner()
thread_usb_read_->join();
if (thread_img_handle_.get() && thread_img_handle_->joinable())
thread_img_handle_->join();
#ifdef OEM_HUAGAO
if (thread_devslock_handle_.get() && thread_devslock_handle_->joinable())
thread_devslock_handle_->join();
#endif
delete custom_gamma_val_;
hg_imgproc::release(ImagePrc_pHandle_);

View File

@ -50,6 +50,7 @@
#define HGVERSION_LIBNANE "libCtsVersion.so"
#endif
#else
#define OEM_HUAGAO
#ifdef WIN32
#define HGVERSION_LIBNANE "HGVersion.dll"
#else

View File

@ -170,7 +170,10 @@ hg_scanner_239::hg_scanner_239(const char* dev_name, int pid,usb_io* io) : hg_sc
}
init_version();
hg_version_init_handle();
#ifdef OEM_HUAGAO
wait_devsislock_.notify();
#endif
}
hg_scanner_239::~hg_scanner_239()
{
@ -1195,11 +1198,6 @@ int hg_scanner_239::start(void)
status_ = SCANNER_ERR_DEVICE_COUNT_MODE;
return status_;
}
//else if ((get_scan_islock(val)) == SCANNER_ERR_DEVICE_ISLOCK)
//{
// status_ = SCANNER_ERR_DEVICE_ISLOCK;
// return status_;
//}
notify_ui_working_status(STATU_DESC_REWRITE_CONFIGURATION);
if(ret == SCANNER_ERR_OK)
@ -1226,11 +1224,15 @@ int hg_scanner_239::start(void)
VLOG_MINI_1(LOG_LEVEL_WARNING, "start status01 is(%s), the result will be unpredictable.\n", hg_scanner_err_name(ret));
return ret;
}
#ifdef OEM_HUAGAO
if (is_checksum_strat_scan)
{
std::string str("C34E58CD5F3F2FF703E1AA24892FBD69");
set_scan_lock_check_val(str);
}
#endif
ret = write_command(setting3399::SC_START);
io_->set_timeout(1000);