|
|
|
@ -355,7 +355,7 @@ bool CPhoneDevice::QuerySystemProperties(std::map<std::string, std::string>& pro
|
|
|
|
|
{
|
|
|
|
|
double val = GpioControl::getChargingVoltage() / 200.0; // ChargeVol *5/1000
|
|
|
|
|
char str[32] = { 0 };
|
|
|
|
|
snprintf(str, sizeof(str), "%.0f", val);
|
|
|
|
|
snprintf(str, sizeof(str), "%.1f", val);
|
|
|
|
|
it->second = str;
|
|
|
|
|
}
|
|
|
|
|
else if (it->first == (PROP_CHARGING_CURRENT))
|
|
|
|
@ -374,7 +374,7 @@ bool CPhoneDevice::QuerySystemProperties(std::map<std::string, std::string>& pro
|
|
|
|
|
{
|
|
|
|
|
double val = GpioControl::getBatteryVoltage() * 3.0 / 1000.0; // // BatVol
|
|
|
|
|
char str[32] = { 0 };
|
|
|
|
|
snprintf(str, sizeof(str), "%.0f", val);
|
|
|
|
|
snprintf(str, sizeof(str), "%.1f", val);
|
|
|
|
|
it->second = str;
|
|
|
|
|
}
|
|
|
|
|
else if (it->first == (PROP_BATTERY_CURRENT))
|
|
|
|
|