Skip to content

Commit 947188e

Browse files
committed
Merge branch 'jwatte-esp8266' into esp8266
* jwatte-esp8266: Fix UDP send to not temporarily use connect()
2 parents ddef215 + 50d3c38 commit 947188e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiUdp.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ int WiFiUDP::endPacket()
169169
return 0;
170170

171171
_ctx->send();
172-
_ctx->disconnect();
173172
return 1;
174173
}
175174

hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/include/UdpContext.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class UdpContext
304304

305305
void _reserve(size_t size)
306306
{
307-
const size_t pbuf_unit_size = 1024;
307+
const size_t pbuf_unit_size = 512;
308308
if (!_tx_buf_head)
309309
{
310310
_tx_buf_head = pbuf_alloc(PBUF_TRANSPORT, pbuf_unit_size, PBUF_RAM);

0 commit comments

Comments
 (0)