diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-11 21:16:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-11 21:16:56 +0000 |
commit | 7e354ad57b4d040ab88e2eeb4ac84240e65e0e52 (patch) | |
tree | a8d9734a0a38870239e613c63c3e066b36221b18 /nuttx/sched/task_create.c | |
parent | 6877a8efaf6edad7dcff6412c1eb03973d080247 (diff) | |
download | px4-nuttx-7e354ad57b4d040ab88e2eeb4ac84240e65e0e52.tar.gz px4-nuttx-7e354ad57b4d040ab88e2eeb4ac84240e65e0e52.tar.bz2 px4-nuttx-7e354ad57b4d040ab88e2eeb4ac84240e65e0e52.zip |
Fixed 8051 printf bug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@57 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_create.c')
-rw-r--r-- | nuttx/sched/task_create.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/sched/task_create.c b/nuttx/sched/task_create.c index 70e220fdd..07a6cab22 100644 --- a/nuttx/sched/task_create.c +++ b/nuttx/sched/task_create.c @@ -433,11 +433,13 @@ int task_create(const char *name, int priority, /* Associate file descriptors with the new task */ +#if CONFIG_NFILE_DESCRIPTORS > 0 if (sched_setuptaskfiles(tcb) != OK) { sched_releasetcb(tcb); return ERROR; } +#endif /* Allocate the stack for the TCB */ |