diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-15 19:34:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-15 19:34:14 +0000 |
commit | 855c03f81973c9c8b4f8eaa6e612a1fdac1188f7 (patch) | |
tree | 22653d34be41c61ae4b0fe6459e66b4d2e7624d2 /nuttx/drivers/lcd | |
parent | eac348a697436ceec946239162a85abdd1fd5b7d (diff) | |
download | px4-nuttx-855c03f81973c9c8b4f8eaa6e612a1fdac1188f7.tar.gz px4-nuttx-855c03f81973c9c8b4f8eaa6e612a1fdac1188f7.tar.bz2 px4-nuttx-855c03f81973c9c8b4f8eaa6e612a1fdac1188f7.zip |
Fixes to build with DEBUG enabled
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2673 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/lcd')
-rwxr-xr-x | nuttx/drivers/lcd/p14201.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/nuttx/drivers/lcd/p14201.c b/nuttx/drivers/lcd/p14201.c index b9b32c69a..7e334dcdb 100755 --- a/nuttx/drivers/lcd/p14201.c +++ b/nuttx/drivers/lcd/p14201.c @@ -134,14 +134,12 @@ # warning "4-bit, big-endian pixel support needed" #endif -/* Define the following to enable detailed debug output (stuff you would +/* Define the CONFIG_LCD_RITDEBUG to enable detailed debug output (stuff you would * never want to see unless you are debugging this file). + * + * Verbose debug must also be enabled */ -#undef CONFIG_LCD_RITDEBUG - -/* Verbose debug must also be enabled */ - #ifndef CONFIG_DEBUG # undef CONFIG_DEBUG_VERBOSE # undef CONFIG_DEBUG_GRAPHICS @@ -620,7 +618,7 @@ static void rit_sndcmds(FAR struct rit_dev_s *priv, FAR const uint8_t *table) while ((cmdlen = *table++) != 0) { - ritdbg("command: %02x cmdlen: %d\n", buflen, *table); + ritdbg("command: %02x cmdlen: %d\n", cmdlen, *table); rit_sndcmd(priv, table, cmdlen); table += cmdlen; } @@ -1042,7 +1040,7 @@ static int rit_getvideoinfo(FAR struct lcd_dev_s *dev, static int rit_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno, FAR struct lcd_planeinfo_s *pinfo) { - DEBUGASSERT(priv && pinfo && planeno == 0); + DEBUGASSERT(pinfo && planeno == 0); gvdbg("planeno: %d bpp: %d\n", planeno, g_planeinfo.bpp); memcpy(pinfo, &g_planeinfo, sizeof(struct lcd_planeinfo_s)); return OK; |