From b609852a58bd26fbac93d06a36dc86f29142a943 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Wed, 10 Jul 2019 19:00:38 +0200 Subject: [PATCH] Revert "Fix crash with Aqara S2 lock Koenkk/zigbee2mqtt#349 (#2)" This reverts commit b2fa80f970ef5d6dca2909cb9dfbda047ec7a019. --- src/zcl-packet/lib/foundation.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/zcl-packet/lib/foundation.ts b/src/zcl-packet/lib/foundation.ts index ed1cecbf4d..de76200f2f 100755 --- a/src/zcl-packet/lib/foundation.ts +++ b/src/zcl-packet/lib/foundation.ts @@ -625,9 +625,8 @@ ru.clause('strPreLenUint8', function (name) { parsedBufLen += 1; this.uint8('len').tap(function () { var attrId = this.vars['attrId']; - var deviceId = zclId.device(260, 10).key; - // special xiaomi struct-string, except xiaomi doorlock because it will crash - if (attrId === 65281&&deviceId!=='doorLock') { + // special xiaomi struct-string + if (attrId === 65281) { ru['xiaoMiStruct'](name)(this); } else { parsedBufLen += this.vars.len;