Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3653 from ssalonen/modbus-binding-open-closed-reg…
Browse files Browse the repository at this point in the history
…ister-writing

Modbus binding: writing open/closed types now work with registers too / fixes #3652
  • Loading branch information
teichsta committed Jan 1, 2016
2 parents da2f75f + 33ef889 commit 7da6aa2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ else if (command.equals(UpDownType.DOWN))
newValue.setValue(1);
else if (command.equals(OnOffType.OFF))
newValue.setValue(0);
} else if (command instanceof OpenClosedType) {
if (command.equals(OpenClosedType.OPEN))
newValue.setValue(1);
else if (command.equals(OpenClosedType.CLOSED))
newValue.setValue(0);
}


Expand Down

0 comments on commit 7da6aa2

Please sign in to comment.