重启设备延迟1秒

hdrplus
Matthew 11 months ago
parent 62e182b49d
commit 12731b466f

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

Loading…
Cancel
Save