summaryrefslogtreecommitdiffstats
path: root/fan_enclosure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fan_enclosure.cpp')
-rw-r--r--fan_enclosure.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/fan_enclosure.cpp b/fan_enclosure.cpp
index 346911d..46efeb5 100644
--- a/fan_enclosure.cpp
+++ b/fan_enclosure.cpp
@@ -13,6 +13,12 @@ void FanEnclosure::addInventory()
//TODO Add this fan to inventory
}
+void FanEnclosure::addSensor(
+ std::unique_ptr<Sensor>&& sensor)
+{
+ FanEnclosure::sensors.push_back(std::move(sensor));
+}
+
} // namespace presence
} // namespace fan
} // namespace phosphor
OpenPOWER on IntegriCloud