Skip to content

Commit 13361c8

Browse files
committed
Use the system defined parameter to set the size of the closed_slots buffer.
1 parent 19a5320 commit 13361c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncTCP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ typedef struct {
7878

7979
static xQueueHandle _async_queue;
8080
static TaskHandle_t _async_service_task_handle = NULL;
81-
const int _number_of_closed_slots = 16;
81+
const int _number_of_closed_slots = CONFIG_LWIP_MAX_ACTIVE_TCP;
8282
static int _closed_index = 0;
8383
static int _closed_slots[_number_of_closed_slots];
8484

0 commit comments

Comments
 (0)