Browse files

compile fix for sim

  • Loading branch information...
1 parent 7f0a090 commit 79424c84aa277a87b47ef158831009fe29e38e9b @sebseb7 committed Nov 22, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 firmware/apps/replicate.c
View
5 firmware/apps/replicate.c
@@ -62,8 +62,11 @@ static uint8_t tick() {
uint16_t p = (sub_step / 4) + x;
char c = score[p / 4 % 5];
uint8_t bits = 0;
+#ifdef __AVR__
if((p & 3) < 3) bits = pgm_read_byte(&font[c - 32][p & 3]);
-
+#else
+ if((p & 3) < 3) bits = font[c - 32][p & 3] ;
+#endif
for(y = 0; y < LED_HEIGHT; ++y) {
setLedXY(x, y, 7 * (bits & 1));
bits >>= 1;

0 comments on commit 79424c8

Please sign in to comment.