diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-03-27 22:33:15 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-03-27 22:33:15 +0000 |
commit | 3f871cbbae8fc67b704f267fadbb932046afd5ca (patch) | |
tree | 111caacdbfa612f833be4c211ac0cfd537ccadcc /apps/examples/nxconsole/nxcon_main.c | |
parent | 92d2b1784ad67d066b589a7e6923b4f76ca84bb2 (diff) | |
download | nuttx-3f871cbbae8fc67b704f267fadbb932046afd5ca.tar.gz nuttx-3f871cbbae8fc67b704f267fadbb932046afd5ca.tar.bz2 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 'apps/examples/nxconsole/nxcon_main.c')
-rw-r--r-- | apps/examples/nxconsole/nxcon_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/nxconsole/nxcon_main.c b/apps/examples/nxconsole/nxcon_main.c index cc83aac16..96f656704 100644 --- a/apps/examples/nxconsole/nxcon_main.c +++ b/apps/examples/nxconsole/nxcon_main.c @@ -356,7 +356,7 @@ int MAIN_NAME(int argc, char **argv) /* Create a window */ message(MAIN_NAME_STRING ": Create window\n"); - g_nxcon_vars.hwnd = nxtk_openwindow(&g_nxcon_vars.hnx, &g_nxconcb, NULL); + g_nxcon_vars.hwnd = nxtk_openwindow(g_nxcon_vars.hnx, &g_nxconcb, NULL); if (!g_nxcon_vars.hwnd) { message(MAIN_NAME_STRING ": nxtk_openwindow failed: %d\n", errno); @@ -432,10 +432,10 @@ int MAIN_NAME(int argc, char **argv) /* Open the driver */ - fd = open(CONFIG_EXAMPLES_NXCON_DEVNAME, O_RDONLY); + fd = open(CONFIG_EXAMPLES_NXCON_DEVNAME, O_WRONLY); if (fd < 0) { - message(MAIN_NAME_STRING ": open %d read-only failed: %d\n", + message(MAIN_NAME_STRING ": open %s read-only failed: %d\n", CONFIG_EXAMPLES_NXCON_DEVNAME, errno); goto errout_with_driver; } |