Skip to content

Commit

Permalink
Merge pull request #333 from petergebruers/fix-build
Browse files Browse the repository at this point in the history
Use OZWManagerAssign to obtain ValueLabel and ValueHelp
  • Loading branch information
ekarak authored Aug 12, 2019
2 parents 92fdf36 + 04e61e2 commit 2974300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ void setValObj(Local<Object> &valobj, OpenZWave::ValueID &value)
{
v8::Local<v8::Object> bitObj;
::std::string help, label;
OZWManager(GetValueLabel, value, &help, pos);
OZWManager(GetValueHelp, value, &label, pos);
OZWManagerAssign(label, GetValueLabel, value, pos);
OZWManagerAssign(help, GetValueHelp, value, pos);
AddStringProp(bitObj, help, help.c_str());
AddStringProp(bitObj, label, label.c_str());
Nan::Set(bitSetIds, Nan::New<v8::String>(::std::to_string(pos)).ToLocalChecked(), bitObj);
Expand Down

0 comments on commit 2974300

Please sign in to comment.