Fix ArtNet compilation on ESP32

This commit is contained in:
Theo Arends 2022-11-16 10:47:55 +01:00
parent d8d191b1c7
commit b92d5ab12c
1 changed files with 7 additions and 7 deletions

View File

@ -223,9 +223,9 @@ void ArtNetLoop(void)
packet_len = ArtNetUdp->parsePacket(); packet_len = ArtNetUdp->parsePacket();
packet_ready = (packet_len > 0); packet_ready = (packet_len > 0);
while (packet_ready) { while (packet_ready) {
uint8_t packet_buffer[UDP_BUFFER_SIZE]; // buffer to hold incoming UDP/SSDP packet uint8_t packet_buffer[WS2812_ARTNET_UDP_BUFFER_SIZE]; // buffer to hold incoming UDP/SSDP packet
packet_len = ArtNetUdp->read(packet_buffer, UDP_BUFFER_SIZE); packet_len = ArtNetUdp->read(packet_buffer, WS2812_ARTNET_UDP_BUFFER_SIZE);
ArtNetUdp->flush(); // Finish reading the current packet ArtNetUdp->flush(); // Finish reading the current packet
#endif #endif
// AddLog(LOG_LEVEL_DEBUG_MORE, PSTR("UDP: Packet %*_H (%d)"), 32, packet_buffer, packet_len); // AddLog(LOG_LEVEL_DEBUG_MORE, PSTR("UDP: Packet %*_H (%d)"), 32, packet_buffer, packet_len);