Autowhite cleanup

Fix for UCS8904 hasWhite().
This commit is contained in:
Blaz Kristan
2023-12-09 18:58:45 +01:00
committed by Frank
parent 1ac02bcd53
commit 68dc4d11a9
4 changed files with 7 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ uint8_t IRAM_ATTR ColorOrderMap::getPixelColorOrder(uint16_t pix, uint8_t defaul
uint32_t Bus::autoWhiteCalc(uint32_t c) {
uint8_t aWM = _autoWhiteMode;
if (_gAWM < 255) aWM = _gAWM;
if (_gAWM != AW_GLOBAL_DISABLED) aWM = _gAWM;
if (aWM == RGBW_MODE_MANUAL_ONLY) return c;
uint8_t w = W(c);
//ignore auto-white calculation if w>0 and mode DUAL (DUAL behaves as BRIGHTER if w==0)