diff --git a/wled00/bus_wrapper.h b/wled00/bus_wrapper.h index 72b4435e5b..c5d80fb219 100644 --- a/wled00/bus_wrapper.h +++ b/wled00/bus_wrapper.h @@ -693,10 +693,12 @@ class PolyBus { } static void setPixelColor(void* busPtr, uint8_t busType, uint16_t pix, uint32_t c, uint8_t co) { - uint8_t r = c >> 16; - uint8_t g = c >> 8; - uint8_t b = c >> 0; - uint8_t w = c >> 24; +/// Color order RGB + B-W swapped correctly + uint8_t g = c >> 16; + uint8_t b = c >> 8; + uint8_t w = c >> 0; + uint8_t r = c >> 24; +/// RgbwColor col; // reorder channels to selected order @@ -1217,4 +1219,4 @@ class PolyBus { } }; -#endif \ No newline at end of file +#endif