aboutsummaryrefslogtreecommitdiffstats
path: root/drv_PICGraphic.c
diff options
context:
space:
mode:
Diffstat (limited to 'drv_PICGraphic.c')
-rw-r--r--drv_PICGraphic.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drv_PICGraphic.c b/drv_PICGraphic.c
index 714ccbd..11c8e3a 100644
--- a/drv_PICGraphic.c
+++ b/drv_PICGraphic.c
@@ -1,4 +1,4 @@
-/* $Id: drv_PICGraphic.c 1141 2011-01-23 17:01:08Z mzuther $
+/* $Id: drv_PICGraphic.c 1153 2011-07-27 05:12:30Z michael $
* $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/drv_PICGraphic.c $
*
* PICGraphic lcd4linux driver
@@ -203,7 +203,7 @@ static void drv_PICGraphic_blit(const int row, const int col, const int height,
delayDone = 0;
int row8, height8;
row8 = 8 * (row / 8);
- height8 = 8 * (height / 8) + !!(height % 8);
+ height8 = 8 * (height / 8) + ! !(height % 8);
info("sending blit");
cmd[0] = 'b';
cmd[1] = row8;
@@ -238,21 +238,21 @@ static void drv_PICGraphic_blit(const int row, const int col, const int height,
static int drv_PICGraphic_GPO(const int num, const int val)
{
- char cmd[3];
+ char __attribute__ ((unused)) cmd[3];
cmd[0] = 'g';
cmd[1] = val ? 's' : 'c';
cmd[2] = num;
// todo: fixme
-// drv_PICGraphic_send(cmd, 3);
+ // drv_PICGraphic_send(cmd, 3);
return 0;
}
static int drv_PICGraphic_GPI(const int num)
{
- char cmd[3];
+ char __attribute__ ((unused)) cmd[3];
int ret = 0;
cmd[0] = 'g';
@@ -260,8 +260,8 @@ static int drv_PICGraphic_GPI(const int num)
cmd[2] = num;
// todo: fixme
-// drv_PICGraphic_send(cmd, 3);
-// ret = drv_generic_serial_read(cmd, 1);
+ // drv_PICGraphic_send(cmd, 3);
+ // ret = drv_generic_serial_read(cmd, 1);
if (ret)
return -1;
@@ -272,7 +272,7 @@ static int drv_PICGraphic_GPI(const int num)
/* example function used in a plugin */
static int drv_PICGraphic_contrast(int contrast)
{
- char cmd[2];
+ char __attribute__ ((unused)) cmd[2];
/* adjust limits according to the display */
if (contrast < 0)
@@ -284,7 +284,7 @@ static int drv_PICGraphic_contrast(int contrast)
cmd[0] = 'c';
cmd[1] = contrast;
// todo: fixme
-// drv_PICGraphic_send(cmd, 2);
+ // drv_PICGraphic_send(cmd, 2);
return contrast;
}