Make sbuff local

This should save 4 bytes per ESPAsyncE131 instance
This commit is contained in:
cschwinne 2021-10-01 20:26:23 +02:00
parent dc9dedf220
commit 17c20276a9
2 changed files with 1 additions and 2 deletions

View File

@ -101,7 +101,7 @@ void ESPAsyncE131::parsePacket(AsyncUDPPacket _packet) {
bool error = false;
uint8_t protocol = P_E131;
sbuff = reinterpret_cast<e131_packet_t *>(_packet.data());
e131_packet_t *sbuff = reinterpret_cast<e131_packet_t *>(_packet.data());
//E1.31 packet identifier ("ACS-E1.17")
if (memcmp(sbuff->acn_id, ESPAsyncE131::ACN_ID, sizeof(sbuff->acn_id)))

View File

@ -163,7 +163,6 @@ class ESPAsyncE131 {
static const uint32_t VECTOR_FRAME = 2;
static const uint8_t VECTOR_DMP = 2;
e131_packet_t *sbuff; // Pointer to scratch packet buffer
AsyncUDP udp; // AsyncUDP
// Internal Initializers