From fe7d3b221a6ef7d7e6f418561df412ad2e456b09 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Wed, 28 Aug 2024 15:25:54 +0300 Subject: [PATCH] pwm_esc: Use PX4_STACK_ADJUSTED() for stack size The module occasionally runs out of stack otherwise --- src/drivers/pwm_esc/pwm_esc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/pwm_esc/pwm_esc.cpp b/src/drivers/pwm_esc/pwm_esc.cpp index 9e9a6b4f2002..28e85cee0fa4 100644 --- a/src/drivers/pwm_esc/pwm_esc.cpp +++ b/src/drivers/pwm_esc/pwm_esc.cpp @@ -282,7 +282,7 @@ PWMESC::init(bool hitl_mode) _task = px4_task_spawn_cmd("pwm_esc", SCHED_DEFAULT, SCHED_PRIORITY_ACTUATOR_OUTPUTS, - 3048, + PX4_STACK_ADJUSTED(3048), (px4_main_t)&PWMESC::task_main_trampoline, nullptr);