Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit b01052d

Browse files
committed
Compat with mathieucarbou/AsyncTCP
1 parent 797cfc4 commit b01052d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/AsyncTCP.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,17 @@ extern "C" {
4444
#define CONFIG_ASYNC_TCP_RUNNING_CORE -1 //any available core
4545
#define CONFIG_ASYNC_TCP_USE_WDT 1 //if enabled, adds between 33us and 200us per event
4646
#endif
47+
#ifndef CONFIG_ASYNC_TCP_STACK_SIZE
48+
#define CONFIG_ASYNC_TCP_STACK_SIZE 16384 // 8192 * 2
49+
#endif
4750
#ifndef CONFIG_ASYNC_TCP_STACK
48-
#define CONFIG_ASYNC_TCP_STACK 16384 // 8192 * 2
51+
#define CONFIG_ASYNC_TCP_STACK CONFIG_ASYNC_TCP_STACK_SIZE
52+
#endif
53+
#ifndef CONFIG_ASYNC_TCP_PRIORITY
54+
#define CONFIG_ASYNC_TCP_PRIORITY 3
4955
#endif
5056
#ifndef CONFIG_ASYNC_TCP_TASK_PRIORITY
51-
#define CONFIG_ASYNC_TCP_TASK_PRIORITY 3
57+
#define CONFIG_ASYNC_TCP_TASK_PRIORITY CONFIG_ASYNC_TCP_PRIORITY
5258
#endif
5359

5460
class AsyncClient;

0 commit comments

Comments
 (0)