解决300设备下发不休眠值为-1时,底层会设置为60s的问题
This commit is contained in:
parent
bd5a756db3
commit
3b41e5736e
|
@ -1019,6 +1019,8 @@ int hg_scanner_300::set_sleep_time(int data)
|
|||
{
|
||||
std::lock_guard<std::mutex> lock(io_lock_);
|
||||
int ret = SCANNER_ERR_OK;
|
||||
if (data == -1)
|
||||
data = 0x7FFFFFFF;
|
||||
USBCB usbcb = { setting3288dsp::SET_SLEEP_TIME,data, 0};
|
||||
ret = writeusb(usbcb);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue