调整221107之前不持支睡眠唤醒

This commit is contained in:
13038267101 2022-10-28 16:37:02 +08:00
parent 08bda3ef77
commit 2aa9bcae14
1 changed files with 6 additions and 2 deletions

View File

@ -1533,7 +1533,7 @@ int hg_scanner_239::start(void)
reset();
get_roller_num();
val = get_device_sleep_stautus();
val = get_device_sleep_stautus();//1220固件版本不支持返回
if (val == 0)
{
status_ = SCANNER_ERR_DEVICE_SLEEPING;;
@ -1803,9 +1803,13 @@ int hg_scanner_239::get_scan_is_sleep()
}
int hg_scanner_239::notify_sleep()
{
std::string fv(get_firmware_version());
int val = 0,
ret = SCANNER_ERR_OK;
if (fv.length() >= 10 && (fv[5] > 'B' || atoi(fv.substr(6, 4).c_str()) >= 1017))
{
ret = write_register(setting3399::SR_NOTIFY_SLEEP, val);
}
return ret;
}
int hg_scanner_239::get_history_count()