Skip to content

Commit

Permalink
nuttx/tasks.cpp: Enable ENV unconditionally when CONFIG_BUILD_KERNEL=y
Browse files Browse the repository at this point in the history
  • Loading branch information
pussuw committed Sep 19, 2023
1 parent 8a9d5a1 commit 26e2431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/nuttx/src/px4/common/tasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int px4_task_spawn_cmd(const char *name, int scheduler, int priority, int stack_
{
sched_lock();

#if !defined(CONFIG_DISABLE_ENVIRON) && !defined(__KERNEL__)
#if !defined(CONFIG_DISABLE_ENVIRON) && !defined(CONFIG_BUILD_KERNEL)
/* None of the modules access the environment variables (via getenv() for instance), so delete them
* all. They are only used within the startup script, and NuttX automatically exports them to the children
* tasks.
Expand Down

0 comments on commit 26e2431

Please sign in to comment.