diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 3ccfcca9..292e697d 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -355,7 +355,7 @@ bool CPhoneDevice::QuerySystemProperties(std::map& 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& 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))