mirror of https://github.com/arendst/Tasmota.git
Revert "Another few victims of core3 UDP"
This reverts commit 27c35befdf
.
This commit is contained in:
parent
adcc50ac6e
commit
7c98e0d303
|
@ -208,9 +208,6 @@ void DeviceGroupsStart()
|
||||||
void DeviceGroupsStop()
|
void DeviceGroupsStop()
|
||||||
{
|
{
|
||||||
device_groups_udp.flush();
|
device_groups_udp.flush();
|
||||||
#ifdef ESP32
|
|
||||||
device_groups_udp.clear(); // New with core3. Does what flush() did in core2;
|
|
||||||
#endif
|
|
||||||
device_groups_up = false;
|
device_groups_up = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -245,8 +245,7 @@ void ArtNetLoop(void)
|
||||||
uint8_t packet_buffer[WS2812_ARTNET_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, WS2812_ARTNET_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
|
||||||
ArtNetUdp->clear(); // New with core3. Does what flush() did in core2;
|
|
||||||
#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);
|
||||||
if (artnet_conf.on) {
|
if (artnet_conf.on) {
|
||||||
|
|
|
@ -1387,9 +1387,6 @@ int32_t udp_call(char *url, uint32_t port, char *sbuf) {
|
||||||
udp.write((const uint8_t*)sbuf, strlen(sbuf));
|
udp.write((const uint8_t*)sbuf, strlen(sbuf));
|
||||||
udp.endPacket();
|
udp.endPacket();
|
||||||
udp.flush();
|
udp.flush();
|
||||||
#ifdef ESP32
|
|
||||||
udp.clear(); // New with core3. Does what flush() did in core2;
|
|
||||||
#endif
|
|
||||||
udp.stop();
|
udp.stop();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue