mirror of
https://github.com/wled/WLED.git
synced 2025-07-15 23:06:36 +00:00
Realtime LED Maps: Feedback applied
This commit is contained in:
parent
9dc459192e
commit
2e5a485804
@ -1700,9 +1700,10 @@ bool WS2812FX::deserializeMap(uint8_t n) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t WS2812FX::getMappedPixelIndex(uint16_t index) {
|
uint16_t IRAM_ATTR WS2812FX::getMappedPixelIndex(uint16_t index) {
|
||||||
if ((realtimeMode == REALTIME_MODE_INACTIVE || realtimeRespectLedMaps)
|
// convert logical address to physical
|
||||||
&& index < customMappingSize) index = strip.customMappingTable[index]; // convert logical address to physical
|
if (index < customMappingSize
|
||||||
|
&& (realtimeMode == REALTIME_MODE_INACTIVE || realtimeRespectLedMaps)) index = customMappingTable[index];
|
||||||
|
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user