Fixed bug in LCD display
Fixed a bug in the where pressing 'UP' first caused garbage to be display on the LCD display. This was caused by 'c' being set to -2 making Gamelist[c] display garbage.
This commit is contained in:
1 parent
be77e8ac89
commit
92d918bbe6
1 file changed
+7
-3
@@ -222,9 +222,13 @@ void loop() /*----( LOOP: RUNS CONSTANTLY )----*/
|
||||
}
|
||||
case btnUP:
|
||||
{
|
||||
if (c != 0) {c--;}
|
||||
lcd.print(GameList[c]);
|
||||
break;
|
||||
if (c !=0)
|
||||
{
|
||||
if (c > 0) {c--;} else {c++;}
|
||||
}
|
||||
|
||||
lcd.print(GameList[c]);
|
||||
break;
|
||||
}
|
||||
case btnDOWN:
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user