调整设备重启协议
This commit is contained in:
parent
328d33a1b8
commit
c928d24ebb
|
@ -2105,7 +2105,7 @@ int hg_scanner_239::get_device_log(string &logpath)
|
|||
int hg_scanner_239::set_devreboot()
|
||||
{
|
||||
int val = 0,
|
||||
ret = read_register(SR_REBOOT, &val);
|
||||
ret = write_register(SR_REBOOT, val);
|
||||
|
||||
if (ret != SCANNER_ERR_OK)
|
||||
return ret;
|
||||
|
@ -2113,7 +2113,7 @@ int hg_scanner_239::set_devreboot()
|
|||
int hg_scanner_239::set_devshtudown()
|
||||
{
|
||||
int val = 0,
|
||||
ret = read_register(SR_POWEROFF, &val);
|
||||
ret = write_register(SR_POWEROFF, val);
|
||||
|
||||
if (ret != SCANNER_ERR_OK)
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue