exp5438: do not use char as array index

This commit is contained in:
Simon Duquennoy 2015-10-20 09:42:03 +02:00
parent 1957ecd94a
commit 45af3adab4

View file

@ -792,7 +792,7 @@ void halLcdPrint(char String[], unsigned char TextStyle)
while (String[i] != 0) // Stop on null character while (String[i] != 0) // Stop on null character
{ {
LookUpChar = fonts_lookup[String[i]]; LookUpChar = fonts_lookup[(unsigned char)String[i]];
for (j = 0; j < FONT_HEIGHT; j++) for (j = 0; j < FONT_HEIGHT; j++)
{ {