重启两个api都调用作双重保护

lowmem
Matthew 2 months ago
parent 396d20ea3f
commit 2b06803252

@ -1199,6 +1199,14 @@ bool CPhoneDevice::Reboot(int resetType, bool manually, const std::string& reaso
GpioControl::reboot();
#else
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
}
}

Loading…
Cancel
Save