增加新的重启方式

lowmem
Matthew 1 month ago
parent 031dc97548
commit c85a5b9371

@ -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();

Loading…
Cancel
Save