aboutsummaryrefslogtreecommitdiffstats
path: root/drv_LCDLinux.c
diff options
context:
space:
mode:
authormichux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2008-11-25 20:38:34 +0000
committermichux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2008-11-25 20:38:34 +0000
commit6ab08ab6c2eb5db99af7d011a9fd8526af3b0aed (patch)
treedf14b04ebfc0dab6371d7af075c671b7d23c66ab /drv_LCDLinux.c
parent0c9798c9429cabcded458ba127972ea096e69978 (diff)
downloadlcd4linux-6ab08ab6c2eb5db99af7d011a9fd8526af3b0aed.tar.gz
fix lcd4linux driver for multible onboard controllers
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@903 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_LCDLinux.c')
-rw-r--r--drv_LCDLinux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drv_LCDLinux.c b/drv_LCDLinux.c
index 5520690..558f769 100644
--- a/drv_LCDLinux.c
+++ b/drv_LCDLinux.c
@@ -162,7 +162,7 @@ static int drv_LL_start(const char *section, const int quiet)
return -1;
}
info("%s: %dx%d display with %d controllers, flags=0x%02lx:",
- Name, buf.cntr_cols, buf.cntr_rows, buf.num_cntr, buf.flags);
+ Name, buf.cntr_cols, buf.cntr_rows*buf.num_cntr, buf.num_cntr, buf.flags);
info("%s: busy-flag checking %sabled", Name, (buf.flags & HD44780_CHECK_BF) ? "en" : "dis");
info("%s: bus width %d bits", Name, (buf.flags & HD44780_4BITS_BUS) ? 4 : 8);
info("%s: font size %s", Name, (buf.flags & HD44780_5X10_FONT) ? "5x10" : "5x8");
@@ -175,14 +175,14 @@ static int drv_LL_start(const char *section, const int quiet)
commit = 1;
}
- if ((rows > 0 && rows != buf.cntr_rows) || (cols > 0 && cols != buf.cntr_cols)) {
+ if ((rows > 0 && rows != buf.cntr_rows*buf.num_cntr) || (cols > 0 && cols != buf.cntr_cols)) {
info("%s: changing size to %dx%d", Name, cols, rows);
- buf.cntr_rows = rows;
+ buf.cntr_rows = rows/buf.num_cntr;
buf.cntr_cols = cols;
commit = 1;
}
- DROWS = buf.cntr_rows;
+ DROWS = buf.cntr_rows*buf.num_cntr;
DCOLS = buf.cntr_cols;
/* overwrite busy-flag checking from lcd4linux.conf */