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);