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

This commit is contained in:
13038267101 2022-10-28 16:38:15 +08:00
parent ddb4c4598f
commit 7ed7ce0ca3
1 changed files with 2 additions and 2 deletions

View File

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