From 7f7df319f500b5dac983e2159e7a6f12565d7358 Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Mon, 15 Jan 2018 16:27:50 -0600 Subject: Use setFunctional when tach sensor is constructed Change-Id: I32e30dc8f659172026258ca533099404c90aebbc Signed-off-by: Matthew Barth --- monitor/tach_sensor.cpp | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.1