summaryrefslogtreecommitdiff
path: root/nuttx/sched/task_create.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-11 21:16:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-11 21:16:56 +0000
commit7e354ad57b4d040ab88e2eeb4ac84240e65e0e52 (patch)
treea8d9734a0a38870239e613c63c3e066b36221b18 /nuttx/sched/task_create.c
parent6877a8efaf6edad7dcff6412c1eb03973d080247 (diff)
downloadpx4-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.c2
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 */