Skip to content

Commit 1ab1487

Browse files
committed
IRAM_ATTR considered harmful (sometimes)
1 parent ece9732 commit 1ab1487

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wled00/udp.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ extern "C" {
674674
// ═══════════════════════════════════════════════════════════════════════════════
675675
// Shared pixel processing - handles brightness, color order, and pixel remapping
676676
// ═══════════════════════════════════════════════════════════════════════════════
677-
static inline void IRAM_ATTR processPixelData(
677+
static inline void processPixelData(
678678
uint8_t* dest,
679679
const uint8_t* src,
680680
uint_fast16_t packetSize,
@@ -796,7 +796,7 @@ class FastAsyncUDP : public AsyncUDP {
796796
};
797797
udp_api_call_t _msg; // Reuse instead of stack allocation each call
798798

799-
static err_t IRAM_ATTR _udp_sendto_if_api(struct tcpip_api_call_data* api_call_msg) {
799+
static err_t _udp_sendto_if_api(struct tcpip_api_call_data* api_call_msg) {
800800
udp_api_call_t* msg = (udp_api_call_t*)api_call_msg;
801801
msg->err = udp_sendto_if(msg->pcb, msg->pb, msg->addr, msg->port, msg->netif);
802802
return msg->err;
@@ -820,7 +820,7 @@ class FastAsyncUDP : public AsyncUDP {
820820
return true;
821821
}
822822

823-
size_t IRAM_ATTR writeTo(const uint8_t* data, size_t len) {
823+
size_t writeTo(const uint8_t* data, size_t len) {
824824
pbuf* pbt = pbuf_alloc(PBUF_TRANSPORT, len, PBUF_RAM);
825825
if (!pbt) return 0;
826826

@@ -838,7 +838,7 @@ class FastAsyncUDP : public AsyncUDP {
838838
// Main broadcast function
839839
// type: 0=DDP, 1=E1.31, 2=Art-Net
840840
// ═══════════════════════════════════════════════════════════════════════════════
841-
uint8_t IRAM_ATTR __attribute__((hot)) realtimeBroadcast(
841+
uint8_t __attribute__((hot)) realtimeBroadcast(
842842
uint8_t type,
843843
IPAddress client,
844844
uint32_t length,

0 commit comments

Comments
 (0)