summaryrefslogtreecommitdiffstats
path: root/utility.cpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2018-05-09 14:55:41 -0500
committerMatthew Barth <msbarth@us.ibm.com>2018-05-17 12:13:36 -0500
commit26e96122ee89ccaa2de317deb70af5dc5011f48f (patch)
treebd3f48d8ba8e31630358ed434da81cbee9a0166e /utility.cpp
parent88923a06e6fdceb452157b712587176b677bb917 (diff)
downloadphosphor-fan-presence-26e96122ee89ccaa2de317deb70af5dc5011f48f.tar.gz
phosphor-fan-presence-26e96122ee89ccaa2de317deb70af5dc5011f48f.zip
Use setProperty function in fan set speed
When a fan's target speed is set, using the setProperty function allows for better handling of dbus failures setting the fan target property. If a failure occurs setting this property, a journal entry is created and a DBusPropertyError exception is thrown to allow the fan control application to exit and restart quickly in its allowed attempts configured in systemd. Tested: Fan control application logs an error to the journal and then terminates when a dbus error occurs setting a fan target speed. Change-Id: Ibd4bd8b18b6010727831d97e32c14fd6c681e170 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'utility.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud