aboutsummaryrefslogtreecommitdiffstats
path: root/drv_USBLCD.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-05 14:56:48 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-05 14:56:48 +0000
commit3daae37c43a92b9605220821ca62ca547fadf2b0 (patch)
treea6fa3242fadae5bf276c05c160eb0f7c4c0f67cf /drv_USBLCD.c
parent302e18d470987cee5ff6956107a5bc5fb0d582f8 (diff)
downloadlcd4linux-3daae37c43a92b9605220821ca62ca547fadf2b0.tar.gz
[lcd4linux @ 2004-06-05 14:56:48 by reinelt]
Cwlinux splash screen fixed USBLCD splash screen fixed plugin_i2c qprintf("%f") replaced with snprintf() git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@465 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_USBLCD.c')
-rw-r--r--drv_USBLCD.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/drv_USBLCD.c b/drv_USBLCD.c
index 28d7d00..d7d05c5 100644
--- a/drv_USBLCD.c
+++ b/drv_USBLCD.c
@@ -1,4 +1,4 @@
-/* $Id: drv_USBLCD.c,v 1.8 2004/06/05 06:41:40 reinelt Exp $
+/* $Id: drv_USBLCD.c,v 1.9 2004/06/05 14:56:48 reinelt Exp $
*
* new style driver for USBLCD displays
*
@@ -26,6 +26,12 @@
*
*
* $Log: drv_USBLCD.c,v $
+ * Revision 1.9 2004/06/05 14:56:48 reinelt
+ *
+ * Cwlinux splash screen fixed
+ * USBLCD splash screen fixed
+ * plugin_i2c qprintf("%f") replaced with snprintf()
+ *
* Revision 1.8 2004/06/05 06:41:40 reinelt
*
* chancged splash screen again
@@ -143,6 +149,8 @@ static void drv_UL_command (unsigned char cmd)
static void drv_UL_clear (void)
{
drv_UL_command (0x01); // clear display
+ drv_UL_command (0x03); // return home
+ drv_UL_send(); // flush buffer
}
@@ -267,11 +275,8 @@ static int drv_UL_start (char *section, int quiet)
drv_UL_command (0x08); // Display off, cursor off, blink off
drv_UL_command (0x0c); // Display on, cursor off, blink off
drv_UL_command (0x06); // curser moves to right, no shift
- drv_UL_clear(); // clear display
- drv_UL_command (0x03); // return home
- // flush buffer
- drv_UL_send();
+ drv_UL_clear(); // clear display
if (!quiet) {
char buffer[40];
@@ -279,7 +284,6 @@ static int drv_UL_start (char *section, int quiet)
if (drv_generic_text_greet (buffer, "http://www.usblcd.de")) {
sleep (3);
drv_UL_clear();
- drv_UL_send();
}
}
@@ -400,9 +404,6 @@ int drv_UL_quit (void)
// say goodbye...
drv_generic_text_greet ("goodbye!", NULL);
-
- // flush buffer
- drv_UL_send();
debug ("closing port %s", Port);
close(usblcd_file);