Conditional IRAM for gamma

This commit is contained in:
Blaž Kristan 2024-09-12 08:30:46 +02:00
parent eae5a74a11
commit 23400d0449

View File

@ -479,14 +479,14 @@ void NeoGammaWLEDMethod::calcGammaTable(float gamma)
} }
} }
uint8_t IRAM_ATTR NeoGammaWLEDMethod::Correct(uint8_t value) uint8_t IRAM_ATTR_YN NeoGammaWLEDMethod::Correct(uint8_t value)
{ {
if (!gammaCorrectCol) return value; if (!gammaCorrectCol) return value;
return gammaT[value]; return gammaT[value];
} }
// used for color gamma correction // used for color gamma correction
uint32_t IRAM_ATTR NeoGammaWLEDMethod::Correct32(uint32_t color) uint32_t IRAM_ATTR_YN NeoGammaWLEDMethod::Correct32(uint32_t color)
{ {
if (!gammaCorrectCol) return color; if (!gammaCorrectCol) return color;
uint8_t w = W(color); uint8_t w = W(color);