kopia lustrzana https://github.com/Aircoookie/WLED
removed IRAM_ATTR from inlined function
when the function is inlined into a IRAM_ATTR function, it will also reside in IRAM. Forced inlining is recommended by Espressif if I understand this correctly: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/hardware-abstraction.htmlpull/4138/head
rodzic
17d59d3337
commit
0a5400263b
|
@ -1884,7 +1884,7 @@ bool WS2812FX::deserializeMap(uint8_t n) {
|
|||
return (customMappingSize > 0);
|
||||
}
|
||||
|
||||
__attribute__ ((always_inline)) inline uint16_t IRAM_ATTR WS2812FX::getMappedPixelIndex(uint16_t index) const {
|
||||
__attribute__ ((always_inline)) inline uint16_t WS2812FX::getMappedPixelIndex(uint16_t index) const {
|
||||
// convert logical address to physical
|
||||
if (index < customMappingSize
|
||||
&& (realtimeMode == REALTIME_MODE_INACTIVE || realtimeRespectLedMaps)) index = customMappingTable[index];
|
||||
|
|
Ładowanie…
Reference in New Issue