aboutsummaryrefslogtreecommitdiffstats
path: root/drv_LEDMatrix.c
diff options
context:
space:
mode:
authorharbaum <harbaum@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-08-14 19:24:22 +0000
committerharbaum <harbaum@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-08-14 19:24:22 +0000
commitaf0a01b34e8af2de7491e201fb852ddf763ded8b (patch)
tree4c01e129db7ef9ea027a751be4db0655255584fc /drv_LEDMatrix.c
parent4eb995e1e23dfc3e84a6f5575326eade6bc6429e (diff)
downloadlcd4linux-af0a01b34e8af2de7491e201fb852ddf763ded8b.tar.gz
[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
Diffstat (limited to 'drv_LEDMatrix.c')
-rw-r--r--drv_LEDMatrix.c12
1 files changed, 10 insertions, 2 deletions
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)