Skip to content

Commit

Permalink
Revert "added data validation"
Browse files Browse the repository at this point in the history
This reverts commit 8d7bd95.

Signed-off-by: Thomas Lauterbach <[email protected]>
  • Loading branch information
Thomas Lauterbach committed Sep 9, 2021
1 parent ca78f5c commit 0cf8e43
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,21 +157,4 @@ public State convertToStateImpl(String channelId, String channelTypeId, Function

return UnDefType.UNDEF;
}

@Override
protected boolean validateData(byte[] bytes) {
// Window status
if (bytes[0] == 1) {
return bytes.length == 8;
}
// Alarm
if (bytes[0] == 2) {
return bytes.length == 2;
}
// Calibration (not supported but valid)
if (bytes[0] == 11) {
return bytes.length == 2;
}
return false;
}
}

0 comments on commit 0cf8e43

Please sign in to comment.