Skip to content

Commit

Permalink
fixed calculation with max volume
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvorthman committed Dec 4, 2016
1 parent fbc2d2f commit 8ca2c34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ ReceiverVolume.prototype.setPowerOn = function(powerOn, callback) {

ReceiverVolume.prototype.setBrightness = function(level, callback) {

var maxVolume = this.maxVolume * 80.0 / 100.0;
var maxVolume = this.maxVolume / 100.0;
var newVolume = maxVolume * level / 100.0;

//convert volume percentage to relative volume
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-marantz-volume",
"version": "1.2.0",
"version": "1.2.1",
"description": "Homebridge plugin to control Denon or Marantz receiver volume with Siri commands",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 8ca2c34

Please sign in to comment.