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);