Fix esp32_rmt_led_strip color modes (#4886)

This commit is contained in:
Jesse Hills 2023-05-24 19:20:06 +12:00 committed by Keith Burzinski
parent 6e414180e0
commit 91ff502872
No known key found for this signature in database
GPG key ID: 802564C5F0EEFFBE

View file

@ -34,7 +34,7 @@ class ESP32RMTLEDStripLightOutput : public light::AddressableLight {
light::LightTraits get_traits() override { light::LightTraits get_traits() override {
auto traits = light::LightTraits(); auto traits = light::LightTraits();
if (this->is_rgbw_) { if (this->is_rgbw_) {
traits.set_supported_color_modes({light::ColorMode::RGB, light::ColorMode::RGB_WHITE}); traits.set_supported_color_modes({light::ColorMode::RGB_WHITE, light::ColorMode::WHITE});
} else { } else {
traits.set_supported_color_modes({light::ColorMode::RGB}); traits.set_supported_color_modes({light::ColorMode::RGB});
} }