summaryrefslogtreecommitdiffstats
path: root/monitor
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2018-01-15 16:27:50 -0600
committerMatthew Barth <msbarth@us.ibm.com>2018-01-23 13:07:48 -0600
commit7f7df319f500b5dac983e2159e7a6f12565d7358 (patch)
treeaacab6304baef134b30c64972afe403b98dc78c0 /monitor
parent5008dafb53c29599dd85ad7cc383a7f2ab319fdd (diff)
downloadphosphor-fan-presence-7f7df319f500b5dac983e2159e7a6f12565d7358.tar.gz
phosphor-fan-presence-7f7df319f500b5dac983e2159e7a6f12565d7358.zip
Use setFunctional when tach sensor is constructed
Change-Id: I32e30dc8f659172026258ca533099404c90aebbc Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'monitor')
-rw-r--r--monitor/tach_sensor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/monitor/tach_sensor.cpp b/monitor/tach_sensor.cpp
index 1069313..2aa1609 100644
--- a/monitor/tach_sensor.cpp
+++ b/monitor/tach_sensor.cpp
@@ -79,8 +79,7 @@ TachSensor::TachSensor(sdbusplus::bus::bus& bus,
_timer(events, [this, &fan](){ fan.timerExpired(*this); })
{
// Start from a known state of functional
- _functional = true;
- updateInventory(_functional);
+ setFunctional(true);
// Load in starting Target and Input values
try
OpenPOWER on IntegriCloud