aboutsummaryrefslogtreecommitdiffstats
path: root/drv_HD44780.c
diff options
context:
space:
mode:
authorreinelt <>2004-03-01 04:29:51 +0000
committerreinelt <>2004-03-01 04:29:51 +0000
commit9213e38c6738eaa787ad6a5349f103e36363dd44 (patch)
tree224fc242661371219cf28d686f89a28410b28786 /drv_HD44780.c
parent2cd26b45f257427c2ced8b789dd1b4bb995754e2 (diff)
downloadlcd4linux-9213e38c6738eaa787ad6a5349f103e36363dd44.tar.gz
[lcd4linux @ 2004-03-01 04:29:51 by reinelt]
cfg_number() returns -1 on error, 0 if value not found (but default val used), and 1 if value was used from the configuration. HD44780 driver adopted to new cfg_number() Crystalfontz 631 driver nearly finished
Diffstat (limited to 'drv_HD44780.c')
-rw-r--r--drv_HD44780.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drv_HD44780.c b/drv_HD44780.c
index a942de7..62b5e3b 100644
--- a/drv_HD44780.c
+++ b/drv_HD44780.c
@@ -1,4 +1,4 @@
-/* $Id: drv_HD44780.c,v 1.13 2004/02/15 21:43:43 reinelt Exp $
+/* $Id: drv_HD44780.c,v 1.14 2004/03/01 04:29:51 reinelt Exp $
*
* new style driver for HD44780-based displays
*
@@ -29,6 +29,12 @@
*
*
* $Log: drv_HD44780.c,v $
+ * Revision 1.14 2004/03/01 04:29:51 reinelt
+ * cfg_number() returns -1 on error, 0 if value not found (but default val used),
+ * and 1 if value was used from the configuration.
+ * HD44780 driver adopted to new cfg_number()
+ * Crystalfontz 631 driver nearly finished
+ *
* Revision 1.13 2004/02/15 21:43:43 reinelt
* T6963 driver nearly finished
* framework for graphic displays done
@@ -639,7 +645,7 @@ static int drv_HD_start (char *section)
// maybe set brightness
if (Capabilities & CAP_BRIGHTNESS) {
int brightness;
- if (cfg_number(section, "Brightness", 0, 0, 3, &brightness)==0) {
+ if (cfg_number(section, "Brightness", 0, 0, 3, &brightness)>0) {
drv_HD_brightness(brightness);
}
}