diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 4d12cba8..2ee786ae 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -780,7 +780,13 @@ bool CPhoneDevice::Reboot(int resetType) if (resetType == REBOOT_TYPE_DEVICE) { // reboot the device - GpioControl::reboot(); + std::thread t([]() + { + std::this_thread::sleep_for(std::chrono::milliseconds(1000)); + GpioControl::reboot(); + }); + t.detach(); + return true; }