Skip to content

Commit

Permalink
Wago: fix outputs being defined as write-only
Browse files Browse the repository at this point in the history
This caused the Backend.Api.Controller to ignore these channel values
  • Loading branch information
sfeilmeier committed Nov 27, 2019
1 parent 5a1a515 commit 46d5d53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public Fieldbus501DO2Ch(Wago parent, int moduleCount, int inputOffset, int outpu
BooleanWriteChannel channel1;
{
OpenemsTypeDoc<Boolean> doc = new BooleanDoc() //
.accessMode(AccessMode.WRITE_ONLY);
.accessMode(AccessMode.READ_WRITE);
FieldbusChannelId channelId = new FieldbusChannelId(id + "_C1", doc);
channel1 = (BooleanWriteChannel) parent.addChannel(channelId);
}
BooleanWriteChannel channel2;
{
OpenemsTypeDoc<Boolean> doc = new BooleanDoc() //
.accessMode(AccessMode.WRITE_ONLY);
.accessMode(AccessMode.READ_WRITE);
FieldbusChannelId channelId = new FieldbusChannelId(id + "_C2", doc);
channel2 = (BooleanWriteChannel) parent.addChannel(channelId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public Fieldbus523RO1Ch(Wago parent, int moduleCount, int inputOffset, int outpu
BooleanWriteChannel channel1;
{
OpenemsTypeDoc<Boolean> doc = new BooleanDoc() //
.accessMode(AccessMode.WRITE_ONLY);
.accessMode(AccessMode.READ_WRITE);
FieldbusChannelId channelId = new FieldbusChannelId(id, doc);
channel1 = (BooleanWriteChannel) parent.addChannel(channelId);
}
Expand Down

0 comments on commit 46d5d53

Please sign in to comment.