mirror of
https://github.com/wled/WLED.git
synced 2025-07-15 06:46:34 +00:00
Conditional IRAM for gamma
This commit is contained in:
parent
eae5a74a11
commit
23400d0449
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user