调整设备重启协议

This commit is contained in:
13038267101 2022-10-13 17:06:40 +08:00
parent 328d33a1b8
commit c928d24ebb
1 changed files with 2 additions and 2 deletions

View File

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