From 6e1625b58d5c67592f5363ad208cd6f1f6f8b3f8 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 10 May 2025 07:43:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= 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 d6fbdaed..9388288f 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1278,7 +1278,7 @@ int CPhoneDevice::QueryBattaryVoltage(int timesForAvg, int* chargingVoltage) int totalVals = 0; int cv = 0; int idx = 0; - XYLOG(XYLOG_SEVERITY_DEBUG, "WorkStatus BusVoltage"); + // XYLOG(XYLOG_SEVERITY_DEBUG, "WorkStatus BusVoltage"); int matched = 0; for (idx = 0; idx < timesForAvg; idx++) { @@ -1294,13 +1294,13 @@ int CPhoneDevice::QueryBattaryVoltage(int timesForAvg, int* chargingVoltage) break; } } - XYLOG(XYLOG_SEVERITY_DEBUG, "WorkStatus BusVoltage end"); + // XYLOG(XYLOG_SEVERITY_DEBUG, "WorkStatus BusVoltage end"); if (chargingVoltage != NULL) { *chargingVoltage = matched > 0 ? (cv / matched) : 0; } - XYLOG(XYLOG_SEVERITY_DEBUG, "WorkStatus BatteryVoltage"); + // XYLOG(XYLOG_SEVERITY_DEBUG, "WorkStatus BatteryVoltage"); matched = 0; for (int idx = 0; idx < timesForAvg; idx++) { @@ -1315,7 +1315,7 @@ int CPhoneDevice::QueryBattaryVoltage(int timesForAvg, int* chargingVoltage) matched++; } } - XYLOG(XYLOG_SEVERITY_DEBUG, "WorkStatus BatteryVoltage end"); + // XYLOG(XYLOG_SEVERITY_DEBUG, "WorkStatus BatteryVoltage end"); return (matched > 0) ? (totalVals / matched) : 0; }