Skip to content

Commit

Permalink
Fix crash due to nil value
Browse files Browse the repository at this point in the history
  • Loading branch information
bonan committed Apr 17, 2024
1 parent 81c8c7f commit 5f90089
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions zclframe.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ func (f *recvZclFrame) Response(srcEp uint8, cmd General) (frame ZclFrame, err e
if nf.cmdType != 0 {
return nil, ErrResponseProfileWide
}
if c.MnfCode() != uint16(f.mnfCode) {
return nil, ErrResponseWrongMnfCode
}
} else {
nf.cmdType = 0
}
Expand Down

0 comments on commit 5f90089

Please sign in to comment.