commit | 17aba776373e14851a04e6b9ac518622b117b2a1 | [log] [tgz] |
---|---|---|
author | Yong Li <yong.b.li@linux.intel.com> | Thu Apr 09 15:48:46 2020 +0800 |
committer | Yong Li <yong.b.li@intel.com> | Sun Apr 12 06:52:17 2020 +0000 |
tree | 46aa2b31677bcf34fc16b47ff97ff7c9a935a991 | |
parent | 3046a0242cfde0cbf871f632c2c143b48ac30c71 [diff] |
Catch the error on set_value call Sometimes the adcsensor crashes with the below error: terminate called after throwing an instance of 'std::system_error' what(): error setting GPIO line values: Operation not permitted Aborted (core dumped) Catch such error to prevent service from crash. Tested: Change the threshold values on ADC sensor P3VBAT, No such crash error Signed-off-by: Yong Li <yong.b.li@linux.intel.com> Change-Id: I05bebb792fc40f458033decd1cca3508af5b770c
dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.
runtime re-configurable from d-bus (entity-manager or the like)
isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible
async single-threaded: uses sdbusplus/asio bindings
multiple data inputs: hwmon, d-bus, direct driver access