Permalink
Browse files

Bug fix for glcdWriteCharGr

  • Loading branch information...
CaitSith2 committed Aug 6, 2010
1 parent 705d8c4 commit f983c755af657b5097ddf4a80c92731115f3f3c5
Showing with 4 additions and 1 deletion.
  1. +4 −1 firmware/glcd.c
View
@@ -304,7 +304,10 @@ void glcdWriteCharGr(u08 grCharIdx)
{
// add this graphic's length to the startIdx
// to get the startIdx of the next one
- grStartIdx += pgm_read_byte(FontGr+grStartIdx);
+ // 2010-03-03 BUG Dataman/CRJONES There's a bug here: Have to add 1 for the byte-cout.
+ // grStartIdx += pgm_read_byte(FontGr+grStartIdx);
+ grStartIdx += pgm_read_byte(FontGr+grStartIdx)+1;
+
}
grLength = pgm_read_byte(FontGr+grStartIdx);

1 comment on commit f983c75

@dataman

This comment has been minimized.

Show comment Hide comment
@dataman

dataman May 21, 2012

Caitsith: Are you sure about this one? Looks like you just backed out my patch of 2010-03-03. The way the table is set up in memory, the byte count is the first byte. I guess it depends on how you configure the data table, but this should really break IntruderChron.

Caitsith: Are you sure about this one? Looks like you just backed out my patch of 2010-03-03. The way the table is set up in memory, the byte count is the first byte. I guess it depends on how you configure the data table, but this should really break IntruderChron.

Please sign in to comment.