From 777b4f01767781172c0da9c32a264b396a490e6f Mon Sep 17 00:00:00 2001 From: Willem Burgers Date: Mon, 8 Dec 2014 08:31:26 +0100 Subject: [PATCH] Hotfix messed up this check all valueID's that changed were calling the getvalueasfloat function. In the latest OZW release this causes exceptions. --- Server/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Main.cpp b/Server/Main.cpp index 6d6e171..263b962 100644 --- a/Server/Main.cpp +++ b/Server/Main.cpp @@ -372,7 +372,7 @@ void OnNotification(Notification const* _notification, void* _context) { } } } - else if(Manager::Get()->GetValueLabel(vid).c_str(), "Temperature") { + else if(strcmp(Manager::Get()->GetValueLabel(vid).c_str(), "Temperature") == 0) { std::string location = Manager::Get()->GetNodeLocation(_notification->GetHomeId(), _notification->GetNodeId()); float currentTemp = 20.00; if(Manager::Get()->GetValueAsFloat(vid,¤tTemp)) {