Skip to content

Commit

Permalink
fixed setting of diplay inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
Bannsaenger committed Jun 3, 2021
1 parent d416129 commit bcebb42
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 4 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"common": {
"name": "x-touch",
"version": "0.2.2",
"version": "0.2.3",
"news": {
"0.0.1": {
"en": "initial release",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || '';
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": "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",
Expand Down

0 comments on commit bcebb42

Please sign in to comment.