commit | c532425115c87611a632120b4c427670fcd99fdc | [log] [tgz] |
---|---|---|
author | Tony Lee <tony.lee@quantatw.com> | Thu Oct 31 17:24:16 2019 +0800 |
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | Fri Jul 30 20:00:54 2021 +0000 |
tree | 3f9ca3fe9385631c4b112313b916fd3cb72be445 | |
parent | 2aeb1c1ac24f1ada244954b852eed5effb450c05 [diff] |
Fix issues and support signed sensor values Sensor will get "disable" when the command "ipmitool sdr elist" is executed that if sensorReadingType is 0x6F. sensor_units_1 is always set to 0 currently. To support the display of signed sensor values, we add the attribute "sensorUnits1" to the sensor mapping yaml. This attribute can be used to determine whether the sensor is signed. It were making negative values 0 in get::readingData(). Fix the issue by using a int32_t and add an overflow check. Change-Id: I705defcf18805db9ada7d0de0738a59aedab61df Signed-off-by: Tony Lee <tony.lee@quantatw.com>
To build this package, do the following steps:
1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make
To clean the repository run ./bootstrap.sh clean
.