kopia lustrzana https://github.com/Aircoookie/WLED
Make sbuff local
This should save 4 bytes per ESPAsyncE131 instancepull/2244/head
rodzic
dc9dedf220
commit
17c20276a9
|
@ -101,7 +101,7 @@ void ESPAsyncE131::parsePacket(AsyncUDPPacket _packet) {
|
||||||
bool error = false;
|
bool error = false;
|
||||||
uint8_t protocol = P_E131;
|
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")
|
//E1.31 packet identifier ("ACS-E1.17")
|
||||||
if (memcmp(sbuff->acn_id, ESPAsyncE131::ACN_ID, sizeof(sbuff->acn_id)))
|
if (memcmp(sbuff->acn_id, ESPAsyncE131::ACN_ID, sizeof(sbuff->acn_id)))
|
||||||
|
|
|
@ -163,7 +163,6 @@ class ESPAsyncE131 {
|
||||||
static const uint32_t VECTOR_FRAME = 2;
|
static const uint32_t VECTOR_FRAME = 2;
|
||||||
static const uint8_t VECTOR_DMP = 2;
|
static const uint8_t VECTOR_DMP = 2;
|
||||||
|
|
||||||
e131_packet_t *sbuff; // Pointer to scratch packet buffer
|
|
||||||
AsyncUDP udp; // AsyncUDP
|
AsyncUDP udp; // AsyncUDP
|
||||||
|
|
||||||
// Internal Initializers
|
// Internal Initializers
|
||||||
|
|
Ładowanie…
Reference in New Issue