|
|
|
@ -780,7 +780,13 @@ bool CPhoneDevice::Reboot(int resetType)
|
|
|
|
|
if (resetType == REBOOT_TYPE_DEVICE)
|
|
|
|
|
{
|
|
|
|
|
// reboot the device
|
|
|
|
|
GpioControl::reboot();
|
|
|
|
|
std::thread t([]()
|
|
|
|
|
{
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
|
|
|
|
GpioControl::reboot();
|
|
|
|
|
});
|
|
|
|
|
t.detach();
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|