diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-18 02:42:03 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-18 02:42:03 +0000 |
commit | 348d3c8a487663c50ecdb2121b1f14c29efd5c8f (patch) | |
tree | ed19bb9e66b272eff5cbb241a96b7eec632a7329 /nuttx/drivers/lcd/p14201.c | |
parent | 3206e11964d09a3855912646608f27bd5c3fb3d2 (diff) | |
download | px4-nuttx-348d3c8a487663c50ecdb2121b1f14c29efd5c8f.tar.gz px4-nuttx-348d3c8a487663c50ecdb2121b1f14c29efd5c8f.tar.bz2 px4-nuttx-348d3c8a487663c50ecdb2121b1f14c29efd5c8f.zip |
Some p14201 fixes (still more bugs)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2684 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/lcd/p14201.c')
-rwxr-xr-x | nuttx/drivers/lcd/p14201.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/drivers/lcd/p14201.c b/nuttx/drivers/lcd/p14201.c index 6c05bacbf..ecb040af5 100755 --- a/nuttx/drivers/lcd/p14201.c +++ b/nuttx/drivers/lcd/p14201.c @@ -762,7 +762,7 @@ static int rit_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer, if ((col & 1) == 0) { - /* Check for the special case of only 1 pixels being blitted */ + /* Check for the special case of only 1 pixel being blitted */ if (npixels > 1) { @@ -804,8 +804,8 @@ static int rit_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer, * bits 7:4 of current byte to run bits 3:0 */ - last = curr; - curr = buffer[i-start]; + last = curr; + curr = buffer[i-start]; run[i] = (last << 4) | (curr >> 4); } @@ -831,7 +831,7 @@ static int rit_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer, cmd[0] = SSD1329_SET_COLADDR; cmd[1] = start; - cmd[2] = aend - 1; + cmd[2] = end - 1; rit_sndcmd(priv, cmd, 3); cmd[0] = SSD1329_SET_ROWADDR; @@ -842,7 +842,7 @@ static int rit_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer, /* Write the run to GDDRAM. */ rit_sndcmd(priv, g_horzinc, sizeof(g_horzinc)); - rit_snddata(priv, &run[start], aend - start); + rit_snddata(priv, &run[start], end - start); /* De-select the SD1329 controller */ |