Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07d80fa

Browse files
committed
Merge branch 'feature/sync_ping' into 'master'
Fix UDP sync register messsage error See merge request sdk/ESP8266_RTOS_SDK!918
2 parents 3ba190e + ab906e6 commit 07d80fa

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

components/lwip/port/esp8266/freertos/udp_sync.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ void udp_sync_ack_sock(void *in_msg)
256256
struct api_msg *msg = (struct api_msg *)in_msg;
257257
struct udp_pcb *pcb = _get_msg_pcb(msg);
258258

259+
if (UDP_SYNC_NONE == s_msg_type) {
260+
TCPIP_APIMSG_ACK(msg);
261+
return ;
262+
}
263+
259264
ret = _udp_sync_ack_sock_ret(msg, 0);
260265
if (ret == ERR_OK && _udp_need_proc(pcb)) {
261266
udp_sync_method_t *method = (udp_sync_method_t *)_udp_priv_data(pcb);

components/lwip/port/esp8266/include/lwipopts.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,21 +1305,21 @@ size_t memp_malloc_get_size(size_t type);
13051305
* The stack size value itself is platform-dependent, but is passed to
13061306
* sys_thread_new() when the thread is created.
13071307
*/
1308-
#define DEFAULT_THREAD_STACKSIZE 0
1308+
#define DEFAULT_THREAD_STACKSIZE TCPIP_THREAD_STACKSIZE
13091309

13101310
/**
13111311
* DEFAULT_THREAD_PRIO: The priority assigned to any other lwIP thread.
13121312
* The priority value itself is platform-dependent, but is passed to
13131313
* sys_thread_new() when the thread is created.
13141314
*/
1315-
#define DEFAULT_THREAD_PRIO 1
1315+
#define DEFAULT_THREAD_PRIO TCPIP_THREAD_PRIO
13161316

13171317
/**
13181318
* DEFAULT_RAW_RECVMBOX_SIZE: The mailbox size for the incoming packets on a
13191319
* NETCONN_RAW. The queue size value itself is platform-dependent, but is passed
13201320
* to sys_mbox_new() when the recvmbox is created.
13211321
*/
1322-
#define DEFAULT_RAW_RECVMBOX_SIZE 0
1322+
#define DEFAULT_RAW_RECVMBOX_SIZE 6
13231323

13241324
/**
13251325
* DEFAULT_UDP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a

0 commit comments

Comments
 (0)