|
|
@ -1199,6 +1199,14 @@ bool CPhoneDevice::Reboot(int resetType, bool manually, const std::string& reaso
|
|
|
|
GpioControl::reboot();
|
|
|
|
GpioControl::reboot();
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
RestartApp(resetType, timeout, reason);
|
|
|
|
RestartApp(resetType, timeout, reason);
|
|
|
|
|
|
|
|
std::thread t([timeout]()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// Double Calls
|
|
|
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(timeout + 5000));
|
|
|
|
|
|
|
|
GpioControl::reboot();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
t.detach();
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|