|
|
|
@ -1157,10 +1157,14 @@ bool CPhoneDevice::Reboot(int resetType, bool manually, const std::string& reaso
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
std::thread t([]()
|
|
|
|
|
std::thread t([manually, timeout]()
|
|
|
|
|
{
|
|
|
|
|
XYLOG(XYLOG_SEVERITY_WARNING, "Recv REBOOT command Manually=%d", manually ? 1 : 0);
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(timeout));
|
|
|
|
|
if (manually)
|
|
|
|
|
{
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
|
|
|
|
GpioControl::reboot();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
t.detach();
|
|
|
|
|
}
|
|
|
|
|