[enocean] Handle messages with MSC RORG () ()

Setting senderId for MSC RORG and set rorg to Unknown when there is no
mach with the supported(handled) RORG types.
Fixes 

Signed-off-by: Zhivka Dimova <zhivka.dimova@myforest.net>
This commit is contained in:
Zhivka Dimova 2022-11-30 20:55:36 +01:00 committed by GitHub
parent ae677dcd9d
commit 622654ff1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -108,11 +108,12 @@ public class ERP1Message extends BasePacket {
}
break;
case SIG:
case MSC:
teachIn = false;
senderId = Arrays.copyOfRange(payload, dataLength - 5, dataLength - 1);
break;
default:
break;
rorg = RORG.Unknown;
}
} catch (Exception e) {