From ba37692f73b8ac0414c9498e66470822f3692b59 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 5 May 2025 22:35:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=90=AF=E8=AE=BE=E5=A4=87=E5=89=8D?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E6=97=A5=E5=BF=97=E5=86=85=E5=AE=B9=E8=BF=9B?= =?UTF-8?q?flash?= 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, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index db62b7e3..d6b24942 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1191,11 +1191,12 @@ bool CPhoneDevice::Reboot(int resetType, bool manually, const std::string& reaso time_t ts = time(NULL); if ((ts - rebootTime) < 1800) { - XYLOG(XYLOG_SEVERITY_WARNING, "Frequent REBOOT DEV Cancelled Prev RBT Time=%lld", (int64_t)rebootTime); + XYLOG(XYLOG_SEVERITY_INFO, "Frequent REBOOT DEV Cancelled Prev RBT Time=%lld", (int64_t)rebootTime); return false; } } - if (manually) + XYLOG(XYLOG_SEVERITY_WARNING_EX, "REBOOT DEV manually=%d After %ums Reason:%s", manually ? 1 : 0, timeout, reason.c_str()); + // if (manually) { #ifdef USING_N938 @@ -1215,8 +1216,7 @@ bool CPhoneDevice::Reboot(int resetType, bool manually, const std::string& reaso } else { - long timeout = 1000; - RestartApp(resetType, timeout, reason); + RestartApp(resetType, (long)timeout, reason); } return true;