Skip to content

Commit

Permalink
Merge pull request #93 from SphtKr/partial-fix-72
Browse files Browse the repository at this point in the history
Fix for part of #72
  • Loading branch information
SphtKr authored Jan 30, 2017
2 parents 6a89597 + 7d3ba33 commit f0cc976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ ZWayServerAccessory.prototype = {
}.bind(this)));
cx.setProps({
minValue: vdev.metrics && vdev.metrics.min !== undefined ? vdev.metrics.min : 0,
maxValue: vdev.metrics && (vdev.metrics.max !== undefined || vdev.metrics.max != 99) ? vdev.metrics.max : 100
maxValue: vdev.metrics && (vdev.metrics.max !== undefined && vdev.metrics.max != 99) ? vdev.metrics.max : 100
});
return cx;
}
Expand Down

0 comments on commit f0cc976

Please sign in to comment.