From 5c99ab56f93bf20cc6a0a66ccfc75a88dccaf5fd Mon Sep 17 00:00:00 2001 From: Philippe G Date: Tue, 30 Nov 2021 21:41:48 -0800 Subject: [PATCH] create queue before task... --- components/services/gpio_exp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/services/gpio_exp.c b/components/services/gpio_exp.c index e5950b32..cada03b2 100644 --- a/components/services/gpio_exp.c +++ b/components/services/gpio_exp.c @@ -131,8 +131,8 @@ struct gpio_exp_s* gpio_exp_create(const gpio_exp_config_t *config) { StaticTask_t* xTaskBuffer = (StaticTask_t*) heap_caps_malloc(sizeof(StaticTask_t), MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT); static EXT_RAM_ATTR StackType_t xStack[2*1024] __attribute__ ((aligned (4))); - xTaskCreateStatic(async_handler, "gpio_expander", sizeof(xStack), NULL, ESP_TASK_PRIO_MIN + 1, xStack, xTaskBuffer); async_queue = xQueueCreate(4, sizeof(async_request_t)); + xTaskCreateStatic(async_handler, "gpio_expander", sizeof(xStack), NULL, ESP_TASK_PRIO_MIN + 1, xStack, xTaskBuffer); } // set interrupt if possible