From 6287b4be19fc37e8d1c2211109628fff513ecc8e Mon Sep 17 00:00:00 2001 From: Thomas Lauterbach Date: Sat, 10 Jul 2021 00:49:30 +0200 Subject: [PATCH] added calibration channels Signed-off-by: Thomas Lauterbach --- .../openhab/binding/enocean/internal/eep/D2_06/D2_06_50.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/eep/D2_06/D2_06_50.java b/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/eep/D2_06/D2_06_50.java index 896ab3e080841..8e962ae64381e 100644 --- a/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/eep/D2_06/D2_06_50.java +++ b/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/eep/D2_06/D2_06_50.java @@ -69,7 +69,7 @@ protected State getWindowHandleState() { } protected State getCalibrationState() { - int calibrationState = bytes[2] >>> 6; + int calibrationState = bytes[1] >>> 6; if (calibrationState == 0x00) { return new StringType("OK"); } else if (calibrationState == 0x01) {