Skip to content

Commit

Permalink
fixed variable type
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvorthman committed Dec 4, 2016
1 parent dcafe46 commit 6fe6286
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 @@ -97,7 +97,7 @@ ReceiverVolume.prototype.setBrightness = function(newLevel, callback) {
var volumeMultiplier = 98/this.maxVolume; //Denon/Marantz percentage maxes at 98 in receiver settings
var newVolume = volumeMultiplier * newLevel;
}else{
var newVolume = Math.max(newLevel, maxVolume);
var newVolume = Math.max(newLevel, this.maxVolume);
}

//cap newVolume. //Denon/Marantz percentage maxes at 98 in receiver settings
Expand Down

0 comments on commit 6fe6286

Please sign in to comment.