From 08a2f2a3fe8a91fb5fbbdb16aadc06658768cb3c Mon Sep 17 00:00:00 2001 From: Robert Schmid Date: Sun, 2 Jan 2022 16:38:33 +0100 Subject: [PATCH] [dali] Fix frame packing (#11936) Signed-off-by: Robert Schmid Signed-off-by: Nick Waterton --- .../org/openhab/binding/dali/internal/protocol/DaliFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.dali/src/main/java/org/openhab/binding/dali/internal/protocol/DaliFrame.java b/bundles/org.openhab.binding.dali/src/main/java/org/openhab/binding/dali/internal/protocol/DaliFrame.java index ba6b714d84174..21591898c6f64 100644 --- a/bundles/org.openhab.binding.dali/src/main/java/org/openhab/binding/dali/internal/protocol/DaliFrame.java +++ b/bundles/org.openhab.binding.dali/src/main/java/org/openhab/binding/dali/internal/protocol/DaliFrame.java @@ -67,7 +67,7 @@ public byte[] pack() { byte[] result = new byte[bytesList.size()]; int i = 0; for (byte b : bytesList) { - result[bytesList.size() - i++] = b; + result[bytesList.size() - ++i] = b; } return result; }