解决300设备下发不休眠值为-1时,底层会设置为60s的问题

This commit is contained in:
yangjiaxuan 2023-09-13 16:21:26 +08:00
parent bd5a756db3
commit 3b41e5736e
1 changed files with 2 additions and 0 deletions

View File

@ -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;