Skip to content

Commit

Permalink
Fix for #25: Open an already opened window
Browse files Browse the repository at this point in the history
  • Loading branch information
dxdc committed Dec 21, 2019
1 parent b7668b5 commit fa135df
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 @@ -101,7 +101,7 @@ BlindsHTTPAccessory.prototype.setTargetPosition = function(pos, callback) {

const moveUp =
this.currentTargetPosition > this.lastPosition ||
this.currentTargetPosition == 1;
this.currentTargetPosition == 100;
const moveMessage = `Move ${moveUp ? 'up' : 'down'}`;
this.log(`Requested ${moveMessage} (to ${this.currentTargetPosition}%)`);

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-blinds",
"version": "1.3.0",
"version": "1.3.1",
"description": "A homebridge plugin to control my blinds",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit fa135df

Please sign in to comment.