From 2e5a485804f619b82335b10a3635a90f126cb489 Mon Sep 17 00:00:00 2001 From: ezcGman Date: Wed, 29 Nov 2023 20:12:31 +0100 Subject: [PATCH] Realtime LED Maps: Feedback applied --- wled00/FX_fcn.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index 0bf4098d8..fcb22157e 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -1700,9 +1700,10 @@ bool WS2812FX::deserializeMap(uint8_t n) { return true; } -uint16_t WS2812FX::getMappedPixelIndex(uint16_t index) { - if ((realtimeMode == REALTIME_MODE_INACTIVE || realtimeRespectLedMaps) - && index < customMappingSize) index = strip.customMappingTable[index]; // convert logical address to physical +uint16_t IRAM_ATTR WS2812FX::getMappedPixelIndex(uint16_t index) { + // convert logical address to physical + if (index < customMappingSize + && (realtimeMode == REALTIME_MODE_INACTIVE || realtimeRespectLedMaps)) index = customMappingTable[index]; return index; }