优化格式

hdrplus
Matthew 1 year ago
parent 032c73eb6d
commit 1844195c64

@ -396,7 +396,7 @@ bool CPhoneDevice::SelfTest(std::string& result)
if (bv > 0) if (bv > 0)
{ {
bv -= bv % 100; 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"); fs::space_info si = fs::space("/data");
@ -636,6 +636,7 @@ bool CPhoneDevice::QuerySystemProperties(std::map<std::string, std::string>& pro
{ {
it->second = std::to_string(m_signalLevel); it->second = std::to_string(m_signalLevel);
} }
/*
else if (startsWith(it->first, PROP_JAVA_PREFIX)) else if (startsWith(it->first, PROP_JAVA_PREFIX))
{ {
if (powerInfo.empty()) if (powerInfo.empty())
@ -648,6 +649,7 @@ bool CPhoneDevice::QuerySystemProperties(std::map<std::string, std::string>& pro
it->second = it2->second; it->second = it2->second;
} }
} }
*/
} }
std::map<std::string, std::string>::iterator it = properties.find(PROP_BATTERY_CURRENT); std::map<std::string, std::string>::iterator it = properties.find(PROP_BATTERY_CURRENT);

Loading…
Cancel
Save