Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
messed up this check
all valueID's that changed were calling the getvalueasfloat function.
In the latest OZW release this causes exceptions.
  • Loading branch information
wburgers committed Dec 8, 2014
1 parent dd9a828 commit 777b4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,&currentTemp)) {
Expand Down

0 comments on commit 777b4f0

Please sign in to comment.