解决点击重启却进入烧录模式的问题
This commit is contained in:
parent
ea07433491
commit
96b91254b4
|
@ -1972,10 +1972,11 @@ int hg_scanner_239::get_device_log(string &logpath)
|
||||||
int hg_scanner_239::set_devreboot(int data)
|
int hg_scanner_239::set_devreboot(int data)
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock(io_lock_);
|
std::lock_guard<std::mutex> lock(io_lock_);
|
||||||
int val = 1;
|
int val = data;
|
||||||
if (data == SANE_POWER_RESTART)
|
if (val == SANE_POWER_RESTART)
|
||||||
val = 0;
|
val = 0;
|
||||||
|
|
||||||
|
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "3399-device,reboot, send value is: %d\n", val);
|
||||||
return write_register(setting3399::SR_REBOOT, val);
|
return write_register(setting3399::SR_REBOOT, val);
|
||||||
}
|
}
|
||||||
int hg_scanner_239::set_devshtudown()
|
int hg_scanner_239::set_devshtudown()
|
||||||
|
|
Loading…
Reference in New Issue