From 13361c8da67ad737393fd32bea1e02fe0b32b281 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 24 Sep 2019 17:26:59 +0100 Subject: [PATCH] Use the system defined parameter to set the size of the closed_slots buffer. --- src/AsyncTCP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AsyncTCP.cpp b/src/AsyncTCP.cpp index e11d9aa..5259400 100644 --- a/src/AsyncTCP.cpp +++ b/src/AsyncTCP.cpp @@ -78,7 +78,7 @@ typedef struct { static xQueueHandle _async_queue; static TaskHandle_t _async_service_task_handle = NULL; -const int _number_of_closed_slots = 16; +const int _number_of_closed_slots = CONFIG_LWIP_MAX_ACTIVE_TCP; static int _closed_index = 0; static int _closed_slots[_number_of_closed_slots];