From 4f0db94c7075dd1649e0cf65a222ce19324a6ae9 Mon Sep 17 00:00:00 2001 From: Ronald Schaten Date: Sun, 10 Apr 2016 21:51:25 +0200 Subject: [PATCH] use only one method of creating an function pointer --- things/DeviceLed.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/things/DeviceLed.h b/things/DeviceLed.h index 5b2a2d8..aa19f5e 100644 --- a/things/DeviceLed.h +++ b/things/DeviceLed.h @@ -89,7 +89,7 @@ bool DeviceLed::ledColorHandler(String message) { void DeviceLed::homieRegister() { ledNode.subscribe("on", [this](String value) { return ledOnHandler(value); }); - ledNode.subscribe("color", std::bind(&DeviceLed::ledColorHandler, this, std::placeholders::_1)); + ledNode.subscribe("color", [this](String value) { return ledColorHandler(value); }); Homie.registerNode(ledNode); }