From e5b5c816899be024a33c645cf14b262aa0809a56 Mon Sep 17 00:00:00 2001
From: patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>
Date: Sat, 15 May 2010 21:34:20 +0000
Subject: [PATCH] Remove some debug stuff

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2675 42af7a65-404d-4744-a932-0658087f49c3
---
 drivers/lcd/p14201.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/drivers/lcd/p14201.c b/drivers/lcd/p14201.c
index b8edc52feb..c06cf33792 100755
--- a/drivers/lcd/p14201.c
+++ b/drivers/lcd/p14201.c
@@ -93,8 +93,6 @@
 #ifndef CONFIG_P14201_SPIMODE
 #  define CONFIG_P14201_SPIMODE SPIDEV_MODE2
 #endif
-#undef CONFIG_P14201_SPIMODE
-#  define CONFIG_P14201_SPIMODE SPIDEV_MODE2
 
 /* CONFIG_P14201_NINTERFACES determines the number of physical interfaces
  * that will be supported.
@@ -366,7 +364,7 @@ static const uint8_t g_initcmds[] =
      (14 << 4),                         /* Oscillator Frequency, FOSC, setting */
       SSD1329_NOOP,
   17, SSD1329_GSCALE_LOOKUP,            /* Look Up Table for Gray Scale Pulse width */
-      1,   2,   3, 4,  5,  6, 8, 10,    /* Value for GS1-8 level Pulse width */
+      1,   2,   3, 4,  5,  6,  8, 10,   /* Value for GS1-8 level Pulse width */
       12, 14, 16, 19, 22, 26, 30,       /* Value for GS9-15 level Pulse width */
       SSD1329_NOOP,
   3,  SSD1329_PRECHRG2_PERIOD,          /* Set Second Pre-charge Period */
@@ -401,7 +399,6 @@ static const uint8_t g_horzinc[] =
 {
   SSD1329_GDDRAM_REMAP,
  (SSD1329_COM_SPLIT|SSD1329_COM_REMAP|SSD1329_NIBBLE_REMAP),
-  SSD1329_NOOP,
 };
 
 /* The following set a window that covers the entire display */
@@ -564,7 +561,8 @@ static void rit_sndbytes(FAR struct rit_dev_s *priv, FAR const uint8_t *buffer,
   FAR struct spi_dev_s *spi = priv->spi;
   uint8_t tmp;
 
-  ritdbg("buflen: %d data: %s\n", buflen, data ? "YES" : "NO");
+  ritdbg("buflen: %d data: %s [%02x %02x %02x]\n",
+         buflen, data ? "YES" : "NO", buffer[0], buffer[1], buffer[2] );
   DEBUGASSERT(spi);
 
   /* Select the SD1329 controller */
@@ -1191,4 +1189,4 @@ FAR struct lcd_dev_s *rit_initialize(FAR struct spi_dev_s *spi, unsigned int dev
   rit_clear(priv);
   return &priv->dev;
 }
-#endif /* CONFIG_LCD_P14201 */
\ No newline at end of file
+#endif /* CONFIG_LCD_P14201 */
-- 
GitLab