From 2382a1df6734ff7ef254166b7ef972bcb43934ee Mon Sep 17 00:00:00 2001 From: Guido Reimer Date: Fri, 24 Sep 2021 17:41:01 +0200 Subject: [PATCH] Update WindowCoveringTilt.js In line 175 JavaScript is testing if the Object ninetyDegRotation exists. But it should test if it is set to "true". --- lib/addins/WindowCoveringTilt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/addins/WindowCoveringTilt.js b/lib/addins/WindowCoveringTilt.js index 5f285ef..cf4731e 100644 --- a/lib/addins/WindowCoveringTilt.js +++ b/lib/addins/WindowCoveringTilt.js @@ -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 {