From 7c0fb2e980af93923f2071e1af087010962e06bd Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Fri, 26 Aug 2011 09:24:25 +0200 Subject: Import upstream version 0.11.0~svn1158 --- drv_PICGraphic.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'drv_PICGraphic.c') 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; } -- cgit v1.2.3