From 6a5d3a3da72e31457605da9bb0e576e3b0bf2532 Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 18 Jun 2024 12:52:08 -0500 Subject: [PATCH] [RN8209] Enable RN8209 task size override (#1973) --- main/ZsensorRN8209.ino | 2 +- main/config_RN8209.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/main/ZsensorRN8209.ino b/main/ZsensorRN8209.ino index e600265..a4419ba 100644 --- a/main/ZsensorRN8209.ino +++ b/main/ZsensorRN8209.ino @@ -110,7 +110,7 @@ void setupRN8209() { cal.EC = RN8209_EC; set_user_param(cal); init_8209c_interface(); - xTaskCreate(rn8209_loop, "rn8209_loop", 5500, NULL, 10, &rn8209TaskHandle); + xTaskCreate(rn8209_loop, "rn8209_loop", RN8209_TASK_STACK_SIZE_OVERRIDE, NULL, 10, &rn8209TaskHandle); //esp_task_wdt_add(rn8209TaskHandle); Log.trace(F("ZsensorRN8209 setup done " CR)); } diff --git a/main/config_RN8209.h b/main/config_RN8209.h index f0baac8..7f0c238 100644 --- a/main/config_RN8209.h +++ b/main/config_RN8209.h @@ -43,6 +43,10 @@ extern void RN8209toMQTT(); # define RN8209_EC 28250 #endif +#ifndef RN8209_TASK_STACK_SIZE_OVERRIDE +# define RN8209_TASK_STACK_SIZE_OVERRIDE 5500 +#endif + #ifndef TimeBetweenReadingRN8209 # define TimeBetweenReadingRN8209 500 // time between 2 RN8209 readings in ms #endif