From af0a01b34e8af2de7491e201fb852ddf763ded8b Mon Sep 17 00:00:00 2001 From: harbaum Date: Mon, 14 Aug 2006 19:24:22 +0000 Subject: [lcd4linux @ 2006-08-14 19:24:22 by harbaum] Umlaut support, added KVV HTTP-User-Agent git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@695 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_LEDMatrix.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'drv_LEDMatrix.c') diff --git a/drv_LEDMatrix.c b/drv_LEDMatrix.c index 313942d..55234be 100644 --- a/drv_LEDMatrix.c +++ b/drv_LEDMatrix.c @@ -1,4 +1,4 @@ -/* $Id: drv_LEDMatrix.c,v 1.8 2006/08/14 05:54:04 reinelt Exp $ +/* $Id: drv_LEDMatrix.c,v 1.9 2006/08/14 19:24:22 harbaum Exp $ * * LED matrix driver for LCD4Linux * (see http://www.harbaum.org/till/ledmatrix for hardware) @@ -23,6 +23,9 @@ * * * $Log: drv_LEDMatrix.c,v $ + * Revision 1.9 2006/08/14 19:24:22 harbaum + * Umlaut support, added KVV HTTP-User-Agent + * * Revision 1.8 2006/08/14 05:54:04 reinelt * minor warnings fixed, CFLAGS changed (no-strict-aliasing) * @@ -170,7 +173,8 @@ static void drv_LEDMatrix_blit(const int row, const int col, const int height, c } else { if ((i == 2) && (reply[0] == DSP_CMD_ACK) && (reply[1] == DSP_CMD_IMAGE)) { ack = 1; -// } else if((i > 1) && (reply[0] == DSP_CMD_IR)) { + } else if ((i > 1) && (reply[0] == DSP_CMD_IR)) { +// maybe used later: // ir_receive(reply+1, i-1); } else { info("%s: Unexpected reply message", Name); @@ -179,6 +183,10 @@ static void drv_LEDMatrix_blit(const int row, const int col, const int height, c } timeout--; } while ((!ack) && (timeout > 0)); + + if (timeout == 0) { + error("%s: display reply timeout", Name); + } } static int drv_LEDMatrix_start(const char *section) -- cgit v1.2.3