Skip to content

Commit 5415fce

Browse files
committed
Fix parsing of clock status for non specified (0xFF) value
1 parent 8aaf95f commit 5415fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

development/src/main/java/gurux/dlms/enums/ClockStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private static ClockStatus[] getEnumConstants() {
133133
*/
134134
public static java.util.Set<ClockStatus> forValue(final int value) {
135135
java.util.Set<ClockStatus> types;
136-
if (value == 0) {
136+
if (value == 0 || value == 0xFF) {
137137
types = new HashSet<ClockStatus>();
138138
types.add(ClockStatus.OK);
139139
} else {

0 commit comments

Comments
 (0)