From d64038262e4c8743ae774efde7a8e91544ed359b Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Fri, 17 Feb 2017 17:10:19 -0600 Subject: Add tach sensors to each fan enclosure Create a tach sensor instance for each sensor listed within a fan enclosure that uses 'tach' based presence detection. Each tach sensor has a pointer to the fan it's associated with and is added to the list of sensors for that fan enclosure. Change-Id: I9a83ec52d1a5d01e39702e185336a09edeb4d158 Signed-off-by: Matthew Barth --- tach_sensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tach_sensor.cpp') diff --git a/tach_sensor.cpp b/tach_sensor.cpp index 1325365..987e390 100644 --- a/tach_sensor.cpp +++ b/tach_sensor.cpp @@ -10,7 +10,7 @@ namespace presence bool TachSensor::isPresent() { - return false; + return (tach != 0); } } // namespace presence -- cgit v1.2.1