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:
Con Huevos Guey committed 2015-12-31 14:10:19 -06:00
1 parent be77e8ac89
commit 92d918bbe6
1 file changed
+7 -3
+7 -3
View File
@@ -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:
{