|
|
|
@ -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<std::string, std::string>& 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<std::string, std::string>& pro
|
|
|
|
|
it->second = it2->second;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::map<std::string, std::string>::iterator it = properties.find(PROP_BATTERY_CURRENT);
|
|
|
|
|