diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-07-14 04:44:45 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-07-14 04:44:45 +0000 |
commit | 255d4ef19a28b9fcc1e34c4cb529eefbfed04afb (patch) | |
tree | 698aa30bd340492962cdcaf355afd2a007f707b9 | |
parent | ec0583b5e503d5b52753bbd7eaeb29064ea6e32c (diff) | |
download | lcd4linux-255d4ef19a28b9fcc1e34c4cb529eefbfed04afb.tar.gz |
[lcd4linux @ 2004-07-14 04:44:44 by reinelt]
Beckmann+Egle fix
added smaple widget for the PPP plugin
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@483 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r-- | drv_BeckmannEgle.c | 13 | ||||
-rw-r--r-- | lcd4linux.conf.sample | 10 |
2 files changed, 19 insertions, 4 deletions
diff --git a/drv_BeckmannEgle.c b/drv_BeckmannEgle.c index dac34e6..f17072f 100644 --- a/drv_BeckmannEgle.c +++ b/drv_BeckmannEgle.c @@ -1,4 +1,4 @@ -/* $Id: drv_BeckmannEgle.c,v 1.12 2004/06/29 04:49:30 reinelt Exp $ +/* $Id: drv_BeckmannEgle.c,v 1.13 2004/07/14 04:44:44 reinelt Exp $ * * driver for Beckmann+Egle "Mini Terminals" and "Compact Terminals" * Copyright 2000 Michael Reinelt <reinelt@eunet.at> @@ -22,6 +22,11 @@ * * * $Log: drv_BeckmannEgle.c,v $ + * Revision 1.13 2004/07/14 04:44:44 reinelt + * + * Beckmann+Egle fix + * added smaple widget for the PPP plugin + * * Revision 1.12 2004/06/29 04:49:30 reinelt * * B+E enhanced port detection @@ -201,13 +206,13 @@ static void drv_BuE_MT_defchar (const int ascii, const unsigned char *matrix) static void drv_BuE_CT_write (const int row, const int col, const char *data, const int len) { - char cmd[] = ESC "LCzs1"; - + char cmd[] = ESC "LCzs\001"; cmd[3] = (char)row + 1; cmd[4] = (char)col + 1; - + drv_generic_serial_write (cmd, 6); drv_generic_serial_write (data, len); + } diff --git a/lcd4linux.conf.sample b/lcd4linux.conf.sample index e68f345..aa25a9e 100644 --- a/lcd4linux.conf.sample +++ b/lcd4linux.conf.sample @@ -285,6 +285,16 @@ Widget Eth0Bar { update tack } +Widget PPP { + class 'Text' + expression (ppp('Rx:0', 500)+ppp('Tx:0', 500)) + prefix 'PPP' + width 9 + precision 0 + align 'R' + update tick +} + Widget Temp { class 'Text' expression i2c_sensors('temp_input3')*1.0324-67 |