aboutsummaryrefslogtreecommitdiffstats
path: root/drv_Cwlinux.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_Cwlinux.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_Cwlinux.c')
-rw-r--r--drv_Cwlinux.c32
1 files changed, 19 insertions, 13 deletions
diff --git a/drv_Cwlinux.c b/drv_Cwlinux.c
index 20b1175..8b6987d 100644
--- a/drv_Cwlinux.c
+++ b/drv_Cwlinux.c
@@ -1,4 +1,4 @@
-/* $Id: drv_Cwlinux.c,v 1.14 2004/06/05 06:41:39 reinelt Exp $
+/* $Id: drv_Cwlinux.c,v 1.15 2004/06/05 14:56:48 reinelt Exp $
*
* new style driver for Cwlinux display modules
*
@@ -23,6 +23,12 @@
*
*
* $Log: drv_Cwlinux.c,v $
+ * Revision 1.15 2004/06/05 14:56:48 reinelt
+ *
+ * Cwlinux splash screen fixed
+ * USBLCD splash screen fixed
+ * plugin_i2c qprintf("%f") replaced with snprintf()
+ *
* Revision 1.14 2004/06/05 06:41:39 reinelt
*
* chancged splash screen again
@@ -140,7 +146,7 @@ typedef struct {
static MODEL Models[] = {
{ 0x01, "CW1602", 2, 16, 5, 0, 1 },
- { 0x02, "CW12232", 4, 40, 6, 0, 2 },
+ { 0x02, "CW12232", 4, 20, 6, 0, 2 },
{ 0xff, "Unknown", -1, -1, -1, -1, -1 }
};
@@ -246,7 +252,7 @@ static int drv_CW_brightness (int brightness)
}
-static int drv_CW_start (char *section, int quiet)
+static int drv_CW_start (char *section)
{
int i;
char *model;
@@ -304,15 +310,6 @@ static int drv_CW_start (char *section, int quiet)
drv_CW_brightness(i);
}
- if (!quiet) {
- char buffer[40];
- qprintf(buffer, sizeof(buffer), "%s %s", Name, Models[Model].name);
- if (drv_generic_text_greet (buffer, "www.cwlinux.com")) {
- sleep (3);
- drv_CW_clear();
- }
- }
-
return 0;
}
@@ -382,7 +379,7 @@ int drv_CW_init (char *section, int quiet)
GOTO_COST = 3; // number of bytes a goto command requires
// start display
- if ((ret=drv_CW_start (section, quiet))!=0)
+ if ((ret=drv_CW_start (section))!=0)
return ret;
// real worker functions
@@ -397,6 +394,15 @@ int drv_CW_init (char *section, int quiet)
break;
}
+ if (!quiet) {
+ char buffer[40];
+ qprintf(buffer, sizeof(buffer), "%s %s", Name, Models[Model].name);
+ if (drv_generic_text_greet (buffer, "www.cwlinux.com")) {
+ sleep (3);
+ drv_CW_clear();
+ }
+ }
+
// initialize generic text driver
if ((ret=drv_generic_text_init(section, Name))!=0)
return ret;