summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxconsole
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-03-27 22:33:15 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-03-27 22:33:15 +0000
commit3f871cbbae8fc67b704f267fadbb932046afd5ca (patch)
tree111caacdbfa612f833be4c211ac0cfd537ccadcc /nuttx/graphics/nxconsole
parent92d2b1784ad67d066b589a7e6923b4f76ca84bb2 (diff)
downloadpx4-nuttx-3f871cbbae8fc67b704f267fadbb932046afd5ca.tar.gz
px4-nuttx-3f871cbbae8fc67b704f267fadbb932046afd5ca.tar.bz2
px4-nuttx-3f871cbbae8fc67b704f267fadbb932046afd5ca.zip
Updaes for NX Console
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4531 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxconsole')
-rwxr-xr-xnuttx/graphics/nxconsole/nxcon_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/graphics/nxconsole/nxcon_driver.c b/nuttx/graphics/nxconsole/nxcon_driver.c
index 60ed3242a..dc7d5f353 100755
--- a/nuttx/graphics/nxconsole/nxcon_driver.c
+++ b/nuttx/graphics/nxconsole/nxcon_driver.c
@@ -104,9 +104,9 @@ static int nxcon_open(FAR struct file *filep)
/* Verify that the driver is opened for write-only access */
- if ((filep->f_oflags & O_WROK) != 0)
+ if ((filep->f_oflags & O_RDOK) != 0)
{
- gdbg("Attempted open with write access\n");
+ gdbg("Attempted open with read access\n");
return -EACCES;
}