diff options
author | nicowallmeier <> | 2003-10-08 06:45:00 +0000 |
---|---|---|
committer | nicowallmeier <> | 2003-10-08 06:45:00 +0000 |
commit | 7c7bb0c3cdcbdfc2f7aef3ff6c089ac94e586e74 (patch) | |
tree | 73a30f1538a52a7d145ca7fc6df9be5effde3756 /HD44780.c | |
parent | 1038881e3bbbe84f97f10aab69f6f952071cd445 (diff) | |
download | lcd4linux-7c7bb0c3cdcbdfc2f7aef3ff6c089ac94e586e74.tar.gz |
[lcd4linux @ 2003-10-08 06:45:00 by nicowallmeier]
Support of two displays of the same size
Diffstat (limited to 'HD44780.c')
-rw-r--r-- | HD44780.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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; |