commit | 12f7c29b5365fc3d40665b4326b2f2c8c559ce67 | [log] [tgz] |
---|---|---|
author | Alexander Filippov <a.filippov@yadro.com> | Wed Sep 23 19:03:46 2020 +0300 |
committer | Andrew Geissler <geissonator@yahoo.com> | Thu Oct 01 17:14:32 2020 -0500 |
tree | 1d5d726ec0d2b91e9c94bb737e019f2e0dd9df39 | |
parent | fbc52ded58d2bf74c33a85ab85edca617928f4ca [diff] |
meta-nicole: phosphor-hwmon: Fix VBAT gain VBAT is measured in millivolts but should be shown in volts. This commit fixes the gain parameter. (From meta-yadro rev: 8b9a6e68150bb92990314743ba7b95166cf9d409) Change-Id: I508948907b5ffc8845bf1ce04c8a811f4632171f End-User-Impact: VBAT will now show in Volts. Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf b/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf index 290a722..a606580 100644 --- a/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf +++ b/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf
@@ -1,5 +1,5 @@ LABEL_in1=vbat -GAIN_in1=2.25 +GAIN_in1=0.00225 # GPIOP2 needs to be pulled high for battery voltage reading GPIOCHIP_in1=0