diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-16 16:52:04 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-16 16:52:04 +0000 |
commit | 694de4eb08b74ddea49c85716f452ddd33a15925 (patch) | |
tree | e7ce99f5070575f1a12ebb767c544db78f323f2c /nuttx/examples/nx/nx_main.c | |
parent | 5634f4a9b27ec9601e8dc807dd54bc26f06f1cf6 (diff) | |
download | px4-nuttx-694de4eb08b74ddea49c85716f452ddd33a15925.tar.gz px4-nuttx-694de4eb08b74ddea49c85716f452ddd33a15925.tar.bz2 px4-nuttx-694de4eb08b74ddea49c85716f452ddd33a15925.zip |
Misc OLED-related bug fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2681 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nx/nx_main.c')
-rw-r--r-- | nuttx/examples/nx/nx_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/examples/nx/nx_main.c b/nuttx/examples/nx/nx_main.c index 06f0c53ec..1320862f3 100644 --- a/nuttx/examples/nx/nx_main.c +++ b/nuttx/examples/nx/nx_main.c @@ -417,7 +417,6 @@ static inline int nxeg_raise(NXEGWINDOW hwnd) static inline int nxeg_suinitialize(void) { FAR NX_DRIVERTYPE *dev; - int ret; #if defined(CONFIG_EXAMPLES_NX_EXTERNINIT) /* Use external graphics driver initialization */ @@ -432,6 +431,8 @@ static inline int nxeg_suinitialize(void) } #elif defined(CONFIG_NX_LCDDRIVER) + int ret; + /* Initialize the LCD device */ message("nxeg_initialize: Initializing LCD\n"); @@ -457,6 +458,8 @@ static inline int nxeg_suinitialize(void) (void)dev->setpower(dev, ((3*CONFIG_LCD_MAXPOWER + 3)/4)); #else + int ret; + /* Initialize the frame buffer device */ message("nxeg_initialize: Initializing framebuffer\n"); |