mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
WRGB Use correct multiplier (#6237)
This commit is contained in:
parent
acbcb9d2be
commit
8a52ba3ea3
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