Skip to content

Commit

Permalink
fixed ethernetip field handler
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Sep 13, 2018
1 parent 9d5f2e2 commit cb27228
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,11 @@ public boolean equals(Object o) {
public int hashCode() {
return Arrays.hashCode(values);
}

@Override
public String toString() {
return "FieldItem{" +
"values=" + Arrays.toString(values) +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ public FieldItem encodeInteger(PlcField field, Object[] values) {
throw new PlcRuntimeException("Invalid encoder for type " + enipField);
}

@Override
public FieldItem encodeBigInteger(PlcField field, Object[] values) {
EtherNetIpField enipField = (EtherNetIpField) field;
throw new PlcRuntimeException("Invalid encoder for type " + enipField);
}

@Override
public FieldItem encodeLong(PlcField field, Object[] values) {
EtherNetIpField enipField = (EtherNetIpField) field;
Expand Down

0 comments on commit cb27228

Please sign in to comment.