mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 12:27:13 +01:00
WRGB Use correct multiplier (#6237)
This commit is contained in:
parent
61a45dcebe
commit
29ec40db5f
@ -160,7 +160,7 @@ light::ESPColorView ESP32RMTLEDStripLightOutput::get_view_internal(int32_t index
|
||||
b = 0;
|
||||
break;
|
||||
}
|
||||
uint8_t multiplier = this->is_rgbw_ ? 4 : 3;
|
||||
uint8_t multiplier = this->is_rgbw_ || this->is_wrgb_ ? 4 : 3;
|
||||
uint8_t white = this->is_wrgb_ ? 0 : 3;
|
||||
|
||||
return {this->buf_ + (index * multiplier) + r + this->is_wrgb_,
|
||||
|
Loading…
Reference in New Issue
Block a user