Skip to content

Commit

Permalink
pwm_esc: Use PX4_STACK_ADJUSTED() for stack size
Browse files Browse the repository at this point in the history
The module occasionally runs out of stack otherwise
  • Loading branch information
pussuw committed Sep 2, 2024
1 parent f7b3b28 commit fe7d3b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/pwm_esc/pwm_esc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fe7d3b2

Please sign in to comment.