From 2b0680325279cd6084c47af4ad536d4d5ec73276 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 27 Apr 2025 10:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=90=AF=E4=B8=A4=E4=B8=AAapi?= =?UTF-8?q?=E9=83=BD=E8=B0=83=E7=94=A8=E4=BD=9C=E5=8F=8C=E9=87=8D=E4=BF=9D?= =?UTF-8?q?=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index c3752cdf..f2527d78 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -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 } }