aboutsummaryrefslogtreecommitdiffstats
path: root/drv_Cwlinux.c
diff options
context:
space:
mode:
authorreinelt <>2004-05-31 05:38:02 +0000
committerreinelt <>2004-05-31 05:38:02 +0000
commit9bda912426137fa2fa6c6734f96157d3b20cf4ec (patch)
treecdf640e43c8a07c9d79278f5e47aefbd142130e2 /drv_Cwlinux.c
parent98aecd949ebdac587dafe715398dbb06d20afe29 (diff)
downloadlcd4linux-9bda912426137fa2fa6c6734f96157d3b20cf4ec.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!
Diffstat (limited to 'drv_Cwlinux.c')
-rw-r--r--drv_Cwlinux.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drv_Cwlinux.c b/drv_Cwlinux.c
index 1c6f243..8d7d096 100644
--- a/drv_Cwlinux.c
+++ b/drv_Cwlinux.c
@@ -1,4 +1,4 @@
-/* $Id: drv_Cwlinux.c,v 1.7 2004/05/28 13:51:42 reinelt Exp $
+/* $Id: drv_Cwlinux.c,v 1.8 2004/05/31 05:38:02 reinelt Exp $
*
* new style driver for Cwlinux display modules
*
@@ -23,6 +23,11 @@
*
*
* $Log: drv_Cwlinux.c,v $
+ * Revision 1.8 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.7 2004/05/28 13:51:42 reinelt
*
* ported driver for Beckmann+Egle Mini-Terminals
@@ -133,7 +138,7 @@ static void drv_CW1602_defchar (int ascii, unsigned char *buffer)
cmd[2]=(char)(ascii+1);
for (i=0; i<8; i++) {
- cmd[3+i]=buffer[i];
+ cmd[3+i] = buffer[i] & 0x1f;
}
drv_generic_serial_write(cmd,12);
usleep(20); // delay for cw1602 to settle the character defined!