Use the system defined parameter to set the size of the closed_slots buffer.

This commit is contained in:
Matt
2019-09-24 17:26:59 +01:00
parent 19a532064c
commit 13361c8da6

View File

@@ -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];