Skip to content

Commit

Permalink
add constants for otcli transmit task
Browse files Browse the repository at this point in the history
  • Loading branch information
DejinChen committed Oct 7, 2023
1 parent 3215e86 commit f8d34d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/platform/ESP32/OpenthreadLauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ static esp_netif_t * openthread_netif = NULL;
static esp_openthread_platform_config_t * s_platform_config = NULL;
static TaskHandle_t cli_transmit_task = NULL;
static QueueHandle_t cli_transmit_task_queue = NULL;
static constexpr uint16_t OTCLI_TRANSMIT_TASK_STACK_SIZE = 1024;
static constexpr UBaseType_t OTCLI_TRANSMIT_TASK_PRIORITY = 5;

CHIP_ERROR cli_transmit_task_post(std::unique_ptr<char[]> && cli_str)
{
Expand Down Expand Up @@ -103,7 +105,8 @@ static void cli_transmit_worker(void * context)

static esp_err_t cli_command_transmit_task(void)
{
xTaskCreate(cli_transmit_worker, "ocli_trans", 3072, xTaskGetCurrentTaskHandle(), 5, &cli_transmit_task);
xTaskCreate(cli_transmit_worker, "otcli_trans", OTCLI_TRANSMIT_TASK_STACK_SIZE, xTaskGetCurrentTaskHandle(),
OTCLI_TRANSMIT_TASK_PRIORITY, &cli_transmit_task);
return ESP_OK;
}

Expand Down

0 comments on commit f8d34d4

Please sign in to comment.