]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2004-07-14 04:44:44 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Wed, 14 Jul 2004 04:44:45 +0000 (04:44 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Wed, 14 Jul 2004 04:44:45 +0000 (04:44 +0000)
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

drv_BeckmannEgle.c
lcd4linux.conf.sample

index dac34e6b25028527487c192c92c16c3736d572b9..f17072f674ee2b4980c5508301424f2fef447dd0 100644 (file)
@@ -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>
  *
  *
  * $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);
+
 }
 
 
index e68f345f4ad160de85542f643b2b4c87a5b2feec..aa25a9ecb66ba87e60195b08b37a04f3e76c9199 100644 (file)
@@ -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