aboutsummaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxconsole
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-03-27 22:33:15 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-03-27 22:33:15 +0000
commit1a975c0a58aa62cad758bbf931cdaaafe10de230 (patch)
tree111caacdbfa612f833be4c211ac0cfd537ccadcc /nuttx/graphics/nxconsole
parent1e104ed08752d7e9ca439e83ece80652de33fcb0 (diff)
downloadpx4-firmware-1a975c0a58aa62cad758bbf931cdaaafe10de230.tar.gz
px4-firmware-1a975c0a58aa62cad758bbf931cdaaafe10de230.tar.bz2
px4-firmware-1a975c0a58aa62cad758bbf931cdaaafe10de230.zip
Updaes for NX Console
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4531 7fd9a85b-ad96-42d3-883c-3090e2eb8679
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;
}