Conditional IRAM for gamma

pull/4129/head
Blaž Kristan 2024-09-12 08:30:46 +02:00
rodzic eae5a74a11
commit 23400d0449
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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;
return gammaT[value];
}
// 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;
uint8_t w = W(color);