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