Lines Matching +full:phosphor +full:- +full:fan +full:- +full:presence
8 * http://www.apache.org/licenses/LICENSE-2.0
18 #include "fan.hpp"
21 #include <phosphor-logging/lg2.hpp>
25 namespace phosphor namespace
27 namespace fan namespace
29 namespace presence namespace
37 // sensor that reports the fan as present, if any. in stateChanged()
45 activeSensor->get().stop(); in stateChanged()
46 present = it->get().start(); in stateChanged()
51 activeSensor->get().fail(); in stateChanged()
54 lg2::info("Using backup presence sensor for fan {FAN}", "FAN", in stateChanged()
55 std::get<1>(fan)); in stateChanged()
60 setPresence(fan, present); in stateChanged()
66 eepromDevice->bind(); in stateChanged()
70 eepromDevice->unbind(); in stateChanged()
77 // Find the first sensor that says the fan is present in monitor()
85 // agree the fan isn't present. Use the first sensor. in monitor()
91 lg2::info("Using backup presence sensor for fan {FAN}", "FAN", in monitor()
92 std::get<1>(fan)); in monitor()
99 it->get().fail(); in monitor()
104 setPresence(fan, activeSensor->get().start()); in monitor()
107 } // namespace presence
108 } // namespace fan
109 } // namespace phosphor