summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxconsole/nxcon_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/graphics/nxconsole/nxcon_driver.c')
-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;
}