aboutsummaryrefslogtreecommitdiffstats
path: root/drv_M50530.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-05-31 05:38:02 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-05-31 05:38:02 +0000
commitea5453f570c5186379745a10054280f47a809299 (patch)
treecdf640e43c8a07c9d79278f5e47aefbd142130e2 /drv_M50530.c
parent0bda5dcd7faa2198fe972aa85b8c72cb0b666554 (diff)
downloadlcd4linux-ea5453f570c5186379745a10054280f47a809299.tar.gz
[lcd4linux @ 2004-05-31 05:38:02 by reinelt]
fixed possible bugs with user-defined chars (clear high bits) thanks to Andy Baxter for debugging the MilfordInstruments driver! git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@449 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_M50530.c')
-rw-r--r--drv_M50530.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drv_M50530.c b/drv_M50530.c
index a60ad4c..9787818 100644
--- a/drv_M50530.c
+++ b/drv_M50530.c
@@ -1,4 +1,4 @@
-/* $Id: drv_M50530.c,v 1.5 2004/05/29 15:53:28 reinelt Exp $
+/* $Id: drv_M50530.c,v 1.6 2004/05/31 05:38:02 reinelt Exp $
*
* new style driver for M50530-based displays
*
@@ -23,6 +23,11 @@
*
*
* $Log: drv_M50530.c,v $
+ * Revision 1.6 2004/05/31 05:38:02 reinelt
+ *
+ * fixed possible bugs with user-defined chars (clear high bits)
+ * thanks to Andy Baxter for debugging the MilfordInstruments driver!
+ *
* Revision 1.5 2004/05/29 15:53:28 reinelt
*
* M50530: reset parport signals on exit
@@ -153,7 +158,7 @@ static void drv_M5_write (int row, int col, unsigned char *data, int len)
}
-static void drv_M5_defchar (int ascii, unsigned char *buffer)
+static void drv_M5_defchar (int ascii, unsigned char *matrix)
{
int i;
@@ -162,7 +167,7 @@ static void drv_M5_defchar (int ascii, unsigned char *buffer)
// Fixme: looks like the M50530 cannot control the bottom line
// therefore we have only 7 bytes here
for (i=0; i<7; i++) {
- drv_M5_command (0x100|buffer[i], 20);
+ drv_M5_command (0x100|(matrix[i] & 0x3f), 20);
}
}