Skip to content

Commit

Permalink
Update WindowCoveringTilt.js
Browse files Browse the repository at this point in the history
In line 175 JavaScript is testing if the Object ninetyDegRotation exists. But it should test if it is set to "true".
  • Loading branch information
EyeOfTheStorm authored and snowdd1 committed Apr 6, 2023
1 parent 55ad6d3 commit 2382a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/addins/WindowCoveringTilt.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class WindowCoveringTilt extends HandlerPattern {
var ninetyDegRotation = this.myAPI.getLocalConstant("ninetyDegRotation");

// is the Shutter one with a full rotation or one with 90° only?
if (ninetyDegRotation) {
if (ninetyDegRotation === true) {
if (newValue > 0){
knxValue = newValue/90 * 255;
} else {
Expand Down

0 comments on commit 2382a1d

Please sign in to comment.