Skip to content

Commit 17c2027

Browse files
committed
Make sbuff local
This should save 4 bytes per ESPAsyncE131 instance
1 parent dc9dedf commit 17c2027

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

wled00/src/dependencies/e131/ESPAsyncE131.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void ESPAsyncE131::parsePacket(AsyncUDPPacket _packet) {
101101
bool error = false;
102102
uint8_t protocol = P_E131;
103103

104-
sbuff = reinterpret_cast<e131_packet_t *>(_packet.data());
104+
e131_packet_t *sbuff = reinterpret_cast<e131_packet_t *>(_packet.data());
105105

106106
//E1.31 packet identifier ("ACS-E1.17")
107107
if (memcmp(sbuff->acn_id, ESPAsyncE131::ACN_ID, sizeof(sbuff->acn_id)))

wled00/src/dependencies/e131/ESPAsyncE131.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ class ESPAsyncE131 {
163163
static const uint32_t VECTOR_FRAME = 2;
164164
static const uint8_t VECTOR_DMP = 2;
165165

166-
e131_packet_t *sbuff; // Pointer to scratch packet buffer
167166
AsyncUDP udp; // AsyncUDP
168167

169168
// Internal Initializers

0 commit comments

Comments
 (0)