|
|
|
@ -1204,11 +1204,16 @@ bool CPhoneDevice::Reboot(int resetType, bool manually, const std::string& reaso
|
|
|
|
|
GpioControl::reboot();
|
|
|
|
|
#else
|
|
|
|
|
RestartApp(resetType, timeout, reason);
|
|
|
|
|
std::thread t([timeout]()
|
|
|
|
|
std::thread t([timeout, fileName]()
|
|
|
|
|
{
|
|
|
|
|
// Double Calls
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(timeout + 5000));
|
|
|
|
|
GpioControl::reboot();
|
|
|
|
|
|
|
|
|
|
writeFile(fileName + ".new", NULL, 0);
|
|
|
|
|
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
|
|
|
|
|
GpioControl::reboot2();
|
|
|
|
|
});
|
|
|
|
|
t.detach();
|
|
|
|
|
|
|
|
|
|