diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 108817c4..2d047620 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -602,13 +602,6 @@ bool CPhoneDevice::QuerySystemProperties(std::map& pro { it->second = std::to_string(android_os_Process_getTotalMemory()); // Unit: M } - else if (it->first == (PROP_CHARGING_VOLTAGE)) - { - double val = GpioControl::getChargingVoltage() / 200.0; // ChargeVol *5/1000 - char str[32] = { 0 }; - snprintf(str, sizeof(str), "%.1f", val); - it->second = str; - } else if (it->first == (PROP_LIGHTDEPENDENT_RESISTOR)) { int val = GpioControl::getLightAdc(); @@ -622,7 +615,7 @@ bool CPhoneDevice::QuerySystemProperties(std::map& pro { it->second = std::to_string(GpioControl::getChargingPower()); } - else if (it->first == (PROP_CHARGING_BUS_VOL)) + else if (it->first == (PROP_CHARGING_BUS_VOL) || it->first == (PROP_CHARGING_VOLTAGE)) { double val = -1; char str[32] = { 0 };