summaryrefslogtreecommitdiffstats
path: root/monitor/tach_sensor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/tach_sensor.cpp')
-rw-r--r--monitor/tach_sensor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor/tach_sensor.cpp b/monitor/tach_sensor.cpp
index de1affb..26ba3c9 100644
--- a/monitor/tach_sensor.cpp
+++ b/monitor/tach_sensor.cpp
@@ -14,6 +14,7 @@
* limitations under the License.
*/
#include <experimental/filesystem>
+#include <functional>
#include <phosphor-logging/log.hpp>
#include <phosphor-logging/elog.hpp>
#include "fan.hpp"
@@ -88,7 +89,7 @@ TachSensor::TachSensor(Mode mode,
_offset(offset),
_timeout(timeout),
_timerMode(TimerMode::func),
- _timer(event, [this, &fan](){ fan.timerExpired(*this); })
+ _timer(event, std::bind(&Fan::timerExpired, &fan, std::ref(*this)))
{
// Start from a known state of functional
setFunctional(true);
OpenPOWER on IntegriCloud