mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[enocean] Fix condition in getPositionData-D2_05_00 (#14558)
Fix #14528 Signed-off-by: Zhivka Dimova <zhivka.dimova@myforest.net>
This commit is contained in:
parent
cc51400bbd
commit
4069d854fb
@ -84,8 +84,9 @@ public class D2_05_00 extends _VLDMessage {
|
||||
|
||||
protected State getPositionData() {
|
||||
if (getCMD() == CMD_ACTUATOR_POSITION_RESPONE) {
|
||||
if (bytes[0] != 127) {
|
||||
return new PercentType(bytes[0] & 0x7f);
|
||||
int position = bytes[0] & 0x7f;
|
||||
if (position != 127) {
|
||||
return new PercentType(position);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user