mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 15:08:10 +01:00
WRGB Use correct multiplier (#6237)
This commit is contained in:
parent
61a45dcebe
commit
29ec40db5f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue