]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2003-10-08 06:45:00 by nicowallmeier]
authornicowallmeier <nicowallmeier@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Wed, 8 Oct 2003 06:45:00 +0000 (06:45 +0000)
committernicowallmeier <nicowallmeier@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Wed, 8 Oct 2003 06:45:00 +0000 (06:45 +0000)
Support of two displays of the same size

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@260 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

HD44780.c

index b94c4d29e87b88dea17f70441892de3d40510caf..85781d48960c057edf2377e817a6a2bfea51ae39 100644 (file)
--- a/HD44780.c
+++ b/HD44780.c
@@ -1,4 +1,4 @@
-/* $Id: HD44780.c,v 1.44 2003/10/05 17:58:50 reinelt Exp $
+/* $Id: HD44780.c,v 1.45 2003/10/08 06:45:00 nicowallmeier Exp $
  *
  * driver for display modules based on the HD44780 chip
  *
@@ -29,6 +29,9 @@
  *
  *
  * $Log: HD44780.c,v $
+ * Revision 1.45  2003/10/08 06:45:00  nicowallmeier
+ * Support of two displays of the same size
+ *
  * Revision 1.44  2003/10/05 17:58:50  reinelt
  * libtool junk; copyright messages cleaned up
  *
@@ -559,8 +562,8 @@ void HD_goto (int row, int col)
 {
   int pos;
 
-  if (Controllers>1 && row>=2) {
-    row -= 2;
+  if (Controllers>1 && row>=Lcd.rows/2) {
+    row -= Lcd.rows/2;
     Controller = 2;
   } else {
     Controller = 1;