Skip to content

Commit

Permalink
Revert "Fix crash with Aqara S2 lock Koenkk/zigbee2mqtt#349 (#2)"
Browse files Browse the repository at this point in the history
This reverts commit b2fa80f.
  • Loading branch information
Koenkk committed Jul 10, 2019
1 parent 11da168 commit b609852
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/zcl-packet/lib/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b609852

Please sign in to comment.