Skip to content

Commit e90a361

Browse files
committed
fix i2c bug
1 parent 6b67f76 commit e90a361

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/menuLCDs.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ warranty, express or implied, as to its usefulness for any purpose.
77
Thread Safe: No
88
Extensible: Yes
99
10-
implement menu output for Francisco Malpartida arduino LCD's
11-
12-
as VirtualPins is not yet a standard I implemented this to support existing libraries
13-
www.r-site.net
10+
implement menu output for F.Malpartida arduino LCD's
11+
https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
1412
***/
1513

1614
#ifndef RSITE_ARDUINOP_MENU_LCD
@@ -44,10 +42,10 @@ www.r-site.net
4442
int i=top;for(;i<m.sz;i++) {
4543
if(i-top>=maxY) break;
4644
if (needRedraw(m,i))
47-
printPrompt(*(prompt*)pgmPtrNear(m.data[i]),i==m.sel,i+1,i-top,m.width);
45+
printPrompt(*(prompt*)pgmPtrNear(m.data[i]),i==m.sel,i+1,0,i-top,m.width);
4846
}
4947
if (drawExit&&i-top<maxY&&needRedraw(m,i))
50-
printPrompt(menu::exitOption,m.sel==m.sz,0,i-top,m.width);
48+
printPrompt(menu::exitOption,m.sel==m.sz,0,0,i-top,m.width);
5149
lastTop=top;
5250
lastSel=m.sel;
5351
drawn=&m;

0 commit comments

Comments
 (0)