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;
0000'>2014-12-28New Upstream Snapshot (commit b46a22c)Jonathan McCrohan1-0/+6 2014-12-28Imported Upstream version 0+git20141218.b46a22cupstream/0+git20141218.b46a22cJonathan McCrohan535-639/+317 2014-10-20Release 0+git20141009.d26b627-1debian/0+git20141009.d26b627-1Jonathan McCrohan1-2/+2 2014-10-20Fix up packaging to account for move to DVBv5Jonathan McCrohan2-2/+6 2014-10-20delete d/dtv-scan-files.install; Upstream now supplies a MakefileJonathan McCrohan2-4/+1 2014-10-15d/control: update Standards Version to 3.9.6Jonathan McCrohan2-1/+3 2014-10-15d/control: add Build-Depends on dvb-toolsJonathan McCrohan2-1/+2 2014-10-15New Upstream Snapshot (commit d26b627)Jonathan McCrohan1-0/+10 2014-10-15Imported Upstream version 0+git20141009.d26b627upstream/0+git20141009.d26b627Jonathan McCrohan2010-11120/+159271 2014-07-23Release 0+git20140611.14bd6c7-1debian/0+git20140611.14bd6c7-1Jonathan McCrohan1-2/+2 2014-07-23New Upstream Snapshot (commit 14bd6c7)Jonathan McCrohan1-2/+3 2014-07-23Imported Upstream version 0+git20140611.14bd6c7upstream/0+git20140611.14bd6c7Jonathan McCrohan7-11/+60 2014-05-13New Upstream Snapshot (commit 1246b27)Jonathan McCrohan1-0/+6 2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983 2014-04-05Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1Jonathan McCrohan1-2/+2 2014-04-05d/control: update Homepage (upstream has moved from Gitweb to cgit)Jonathan McCrohan2-1/+2 2014-04-05New Upstream Snapshot (commit cfc2975)Jonathan McCrohan1-0/+6 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9