Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
hfedcba committed May 29, 2018
2 parents 168c992 + 12090ba commit c3a0c36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PhilipsHueCentral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,7 @@ void PhilipsHueCentral::searchHueBridges()
for(auto device : devices)
{
PVariable info = device.second.info();
if(!info) continue;
if(info->structValue->find("manufacturer") == info->structValue->end() || info->structValue->find("modelName") == info->structValue->end() || info->structValue->find("serialNumber") == info->structValue->end()) continue;
if(info->structValue->at("manufacturer")->stringValue != "Royal Philips Electronics" || info->structValue->at("modelName")->stringValue.compare(0, 18, "Philips hue bridge") != 0) continue;
Systems::PPhysicalInterfaceSettings settings = std::make_shared<Systems::PhysicalInterfaceSettings>();
Expand Down

0 comments on commit c3a0c36

Please sign in to comment.