diff options
Diffstat (limited to 'meta-yadro/meta-nicole/recipes-phosphor/sensors')
-rw-r--r-- | meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf | 6 | ||||
-rw-r--r-- | meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend | 2 |
2 files changed, 6 insertions, 2 deletions
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 a6065805c..cca2f395a 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,9 @@ LABEL_in1=vbat -GAIN_in1=0.00225 +CRITLO_in1 = "2000" +WARNLO_in1 = "2500" +WARNHI_in1 = "3400" +CRITHI_in1 = "3500" +GAIN_in1=2.25 # GPIOP2 needs to be pulled high for battery voltage reading GPIOCHIP_in1=0 diff --git a/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend b/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend index 58e0c90b3..e06afb48a 100644 --- a/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend +++ b/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend @@ -1,6 +1,6 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -EXTRA_OECONF_append = " --enable-negative-errno-on-fail" +EXTRA_OEMESON_append = " -Dnegative-errno-on-fail=true" ITEMS = "iio-hwmon-battery.conf" |