Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RN8209] Enable RN8209 task size override #1973

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main/ZsensorRN8209.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
4 changes: 4 additions & 0 deletions main/config_RN8209.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading