[Android Apps and Games] rawdr:
Batt_current_now on HTC One m7

Hi. First of all great app, thanks for your work. I've noticed on my Sprint HTC One (m7spr) that the charge current is only updated about once every minute. Even if I tap on it to update (notification "mA updated" displays), it reads the same value - obviously the underlying sensor is only updating every minute.

I looked into it and the data it is reading correlates with /devices/platform/htc_battery/power_supply/battery/batt_current. If this reads -110600 then BMW correctly displays +110mA and the batt_current value only changes every minute or so.

But there is also a "batt_current_now" in the same folder, which gives an instantaneous reading (the result here is also in uA and has a negative sign). Has the app been updated for the m7's particular hardware? Or maybe the m7spr is different yet?

Let me know if I can provide any debugging info, as I would love to be able to get instantaneous readings.

root@m7wls:/sys # find . -iname *batt*
./bus/platform/devices/htc_battery
./bus/platform/devices/pm8xxx-batt-alarm
./bus/platform/drivers/htc_battery
./bus/platform/drivers/htc_battery/htc_battery
./bus/platform/drivers/pm8xxx-batt-alarm
./bus/platform/drivers/pm8xxx-batt-alarm/pm8xxx-batt-alarm
./devices/virtual/misc/htc_batt
./devices/virtual/misc/htc_batt/event_to_daemon/htc_batt_timer
./devices/platform/htc_battery
./devices/platform/htc_battery/power_supply/battery
./devices/platform/htc_battery/power_supply/battery/batt_attr_text
./devices/platform/htc_battery/power_supply/battery/batt_temp_now
./devices/platform/htc_battery/power_supply/battery/batt_temp
./devices/platform/htc_battery/power_supply/battery/batt_current_now
./devices/platform/htc_battery/power_supply/battery/batt_overload
./devices/platform/htc_battery/power_supply/battery/full_level_dis_batt_chg
./devices/platform/htc_battery/power_supply/battery/batt_vol_now
./devices/platform/htc_battery/power_supply/battery/batt_debug_flag
./devices/platform/htc_battery/power_supply/battery/batt_id
./devices/platform/htc_battery/power_supply/battery/batt_state
./devices/platform/htc_battery/power_supply/battery/batt_current
./devices/platform/htc_battery/power_supply/battery/batt_power_meter
./devices/platform/htc_battery/power_supply/battery/batt_vol
./devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-batt-alarm
./devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-adc/batt_id
./devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-adc/batt_therm
./class/misc/htc_batt
./class/power_supply/battery
./power/pnpmgr/thermal/thermal_batt
./power/pnpmgr/battery
./module/pm8921_bms_htc/parameters/bms_fake_battery
./module/pm8921_bms_htc/parameters/last_real_fcc_batt_temp
./module/pm8921_bms_htc/parameters/last_rbatt
./module/pm8xxx_batt_alarm

root@m7wls:/sys # find . -iname *current*
./fs/selinux/class/process/perms/setcurrent
./devices/system/cpu/cpuidle/current_driver
./devices/system/cpu/cpuidle/current_governor_ro
./devices/system/clocksource/clocksource0/current_clocksource
./devices/virtual/misc/hw_random/rng_current
./devices/platform/htc_battery/power_supply/battery/batt_current_now
./devices/platform/htc_battery/power_supply/battery/batt_current
./devices/platform/msm_hsusb/udc/msm_hsusb/current_speed
./devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/amber/currents
./devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/green/currents
./devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/button-backlight/currents
./module/pm8921_charger_htc/parameters/usb_max_current