Fade out on CCT bulb with SO92 1 (#21159)

This commit is contained in:
s-hadinger 2024-04-12 19:53:37 +02:00 committed by GitHub
parent 5cb3ea2114
commit 5f7584efe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View File

@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file.
### Fixed
- NeoPool hydrolysis unit for Hidrolife, Bionet and Generic device (#21098)
- M5Core2 LoRa868 module receive exception
- Fade out on CCT bulb with `SO92 1`
### Removed
- Unused `#define MQTT_DATA_STRING` support

View File

@ -2412,7 +2412,6 @@ void calcGammaBulbs(uint16_t cur_col_10[5]) {
if (ChannelCT() >= 0) {
// Need to compute white_bri10 and ct_10 from cur_col_10[] for compatibility with VirtualCT
white_bri10 = cur_col_10[cw0] + cur_col_10[cw0+1];
ct_10 = changeUIntScale(cur_col_10[cw0+1], 0, white_bri10, 0, 1023);
if (white_bri10 > 1023) {
// In white_free_cw mode, the combined brightness of cw and ww may be larger than 1023.
// This cannot be represented in pwm_ct_mode, so we set the maximum brightness instead.