From 1844195c6474e731596a39203956096bf3a84740 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 3 Jun 2024 22:43:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index ecb8836e..de1416c9 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -396,7 +396,7 @@ bool CPhoneDevice::SelfTest(std::string& result) if (bv > 0) { bv -= bv % 100; - result += "电池电压:" + std::to_string((float)bv / 1000) + "\r\n"; + result += std::string("电池电压:") + std::to_string(bv / 1000) + std::string(".") + std::to_string((bv % 1000) / 100) + "\r\n"; } fs::space_info si = fs::space("/data"); @@ -636,6 +636,7 @@ bool CPhoneDevice::QuerySystemProperties(std::map& pro { it->second = std::to_string(m_signalLevel); } + /* else if (startsWith(it->first, PROP_JAVA_PREFIX)) { if (powerInfo.empty()) @@ -648,6 +649,7 @@ bool CPhoneDevice::QuerySystemProperties(std::map& pro it->second = it2->second; } } + */ } std::map::iterator it = properties.find(PROP_BATTERY_CURRENT);