diff --git a/README.md b/README.md index ec3968a..5a1a240 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,9 @@ Communicate with a Behringer X-Touch Control Surface (DAW Controller) ### 0.2.2 * (Bannsaenger) fixed fader handling and data distribution to the device group +### 0.2.3 +* (Bannsaenger) fixed setting of diplay inverted + ## License MIT License diff --git a/io-package.json b/io-package.json index cce439b..f58e37d 100644 --- a/io-package.json +++ b/io-package.json @@ -1,7 +1,7 @@ { "common": { "name": "x-touch", - "version": "0.2.2", + "version": "0.2.3", "news": { "0.0.1": { "en": "initial release", @@ -38,6 +38,9 @@ }, "0.2.2": { "en": "fixed fader handling and data distribution to the device group" + }, + "0.2.3": { + "en": "fixed setting of diplay inverted" } }, "title": "Behringer X-Touch", diff --git a/main.js b/main.js index bf7651f..a33e039 100644 --- a/main.js +++ b/main.js @@ -695,8 +695,8 @@ class XTouch extends utils.Adapter { const displayArr = displayId.split('.'); const stateName = displayArr.length > 9 ? displayArr[9] : ''; const baseId = displayId.substr(0, displayId.lastIndexOf('.')); - if (!value) return; // nothing to do - if (stateName === '') return; // if only base id there is nothing to handle. only called via onStateChange. Sending is done via sendDisplay + if (value === undefined) return; // nothing to do + if (stateName === '') return; // if only base id there is nothing to handle. only called via onStateChange. Sending is done via sendDisplay let color = Number(self.deviceGroups[baseId + '.color'].val); let inverted = self.deviceGroups[baseId + '.inverted'].val; let line1 = self.deviceGroups[baseId + '.line1'].val || ''; diff --git a/package.json b/package.json index 3fb6ae2..6c2f61d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.x-touch", - "version": "0.2.2", + "version": "0.2.3", "description": "Communicate with a Behringer X-Touch Control Surface (DAW Controller)", "author": { "name": "Bannsaenger",