diff --git a/protocol/src/main/java/pl/grzeslowski/jsupla/protocol/api/decoders/dsc/ChannelStateDecoder.java b/protocol/src/main/java/pl/grzeslowski/jsupla/protocol/api/decoders/dsc/ChannelStateDecoder.java index e40f30f6..11cb23ba 100644 --- a/protocol/src/main/java/pl/grzeslowski/jsupla/protocol/api/decoders/dsc/ChannelStateDecoder.java +++ b/protocol/src/main/java/pl/grzeslowski/jsupla/protocol/api/decoders/dsc/ChannelStateDecoder.java @@ -101,7 +101,7 @@ public ChannelState decode(byte[] bytes, int offset) { } offset += INT_SIZE; - int emptySpaceLength = 2; + int emptySpaceLength = 1; byte[] emptySpace = new byte[emptySpaceLength]; System.arraycopy(bytes, offset, emptySpace, 0, emptySpaceLength); offset += emptySpaceLength * BYTE_SIZE; @@ -129,6 +129,7 @@ public ChannelState decode(byte[] bytes, int offset) { lightSourceLifespanLeft, lightSourceOperatingTime, operatingTime, + (byte) 1, emptySpace); } }