[RN8209] Enable RN8209 task size override (#1973)

This commit is contained in:
Florian authored and GitHub committed 2024-06-18 12:52:08 -05:00
1 parent aa5fd3cb0b
commit 6a5d3a3da7
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -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));
}
+4
View File
@@ -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