summaryrefslogtreecommitdiff
path: root/nuttx/examples/nx/nx_main.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-23 03:29:51 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-23 03:29:51 +0000
commitc44875bf6618c6785ef58a734f47155ece14a30f (patch)
treefee9ac9d15177db27956eda28e54d36e7cd90f34 /nuttx/examples/nx/nx_main.c
parent72c0c33d10e26f4ac9026c66cd3cf69478a31bc9 (diff)
downloadpx4-nuttx-c44875bf6618c6785ef58a734f47155ece14a30f.tar.gz
px4-nuttx-c44875bf6618c6785ef58a734f47155ece14a30f.tar.bz2
px4-nuttx-c44875bf6618c6785ef58a734f47155ece14a30f.zip
More NX LCD fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2624 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nx/nx_main.c')
-rw-r--r--nuttx/examples/nx/nx_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/examples/nx/nx_main.c b/nuttx/examples/nx/nx_main.c
index b63429a0f..4f5fe8cd4 100644
--- a/nuttx/examples/nx/nx_main.c
+++ b/nuttx/examples/nx/nx_main.c
@@ -443,7 +443,7 @@ static inline int nxeg_suinitialize(void)
/* Turn the LCD on at 75% power */
- (void)dev->setpower(dev, (3*CONFIG_LCD_MAXPOWER/4));
+ (void)dev->setpower(dev, ((3*CONFIG_LCD_MAXPOWER + 3)/4));
#else
/* Initialize the frame buffer device */
@@ -715,8 +715,8 @@ int user_start(int argc, char *argv[])
message("user_start: Create window #2\n");
nxeg_initstate(&g_wstate[1], 2, CONFIG_EXAMPLES_NX_COLOR2);
hwnd2 = nxeg_openwindow(&g_nxcb, &g_wstate[1]);
- message("user_start: hwnd1=%p\n", hwnd1);
- if (!hwnd1)
+ message("user_start: hwnd2=%p\n", hwnd2);
+ if (!hwnd2)
{
goto errout_with_hwnd1;
}