diyhue / diyHue

Main diyHue software repo
https://diyhue.org/
Other
1.52k stars 274 forks source link

master - services/entertainment: use XY directly if provided by frame #955

Closed hre999 closed 7 months ago

hre999 commented 7 months ago

Same PR, but for master as per https://github.com/diyhue/diyHue/pull/954#issuecomment-1822741905

By resetting and checking for the existing bri, we can use the XY values from the incoming frame directly if provided instead of double converting it. This improves color accuracy as far as I've tested and maybe saves a bit on performance.