Skip to content

Commit

Permalink
Update AdaptiveLighting.js
Browse files Browse the repository at this point in the history
Handle transition control setting without the `2.1.2.3` value, see #766.
  • Loading branch information
ebaauw committed Nov 23, 2020
1 parent 2c99d75 commit 756307d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/AdaptiveLighting.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ function tlvFromUInt (type, value) {

// Return a TVL buffer for given type and hex string value.
function tlvFromHexString (type, value) {
if (value == null) {
return Buffer.alloc(0)
}
return tlvFromBuffer(type, Buffer.from(value, 'hex'))
}

Expand Down

0 comments on commit 756307d

Please sign in to comment.