Fix off-by-one bug. [Found by 9r]

This commit is contained in:
Stefan `Sec` Zehl 2011-08-03 18:23:56 +02:00
parent c62c06c087
commit 8ec395879b
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ void changer(void){
lcdPrint("[");
lcdPrint(IntToStr(current_offset/visible_lines,1,0));
lcdPrint("/");
lcdPrint(IntToStr(numentries/visible_lines,1,0));
lcdPrint(IntToStr((numentries-1)/visible_lines,1,0));
lcdPrint("]");
lcdNl();