mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 07:24:54 +01:00
Correct bitmask for third color (blue) scaling. (#2817)
This commit is contained in:
parent
7a5c3aa7ed
commit
10f830c3ef
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class ColorUtil {
|
|||
? esp_scale(((colorcode >> third_bits) & ((1 << second_bits) - 1)), ((1 << second_bits) - 1))
|
||||
: esp_scale(((colorcode >> 8) & 0xFF), ((1 << second_bits) - 1));
|
||||
|
||||
third_color = (right_bit_aligned ? esp_scale(((colorcode >> 0) & 0xFF), ((1 << third_bits) - 1))
|
||||
third_color = (right_bit_aligned ? esp_scale(((colorcode >> 0) & ((1 << third_bits) - 1)), ((1 << third_bits) - 1))
|
||||
: esp_scale(((colorcode >> 0) & 0xFF), (1 << third_bits) - 1));
|
||||
|
||||
Color color_return;
|
||||
|
|
Loading…
Reference in a new issue