Tue, 20 Nov 2012 23:31:03 +0000
show LED state change only if SHOW_LEDS is defined
src/memory.c | file | annotate | diff | revisions |
1.1 --- a/src/memory.c Sat Nov 17 22:26:53 2012 +0000 1.2 +++ b/src/memory.c Tue Nov 20 23:31:03 2012 +0000 1.3 @@ -386,11 +386,13 @@ 1.4 state.dma_reading = (data & 0x4000); 1.5 if (state.leds != ((~data & 0xF00) >> 8)) { 1.6 state.leds = (~data & 0xF00) >> 8; 1.7 +#ifdef SHOW_LEDS 1.8 printf("LEDs: %s %s %s %s\n", 1.9 (state.leds & 8) ? "R" : "-", 1.10 (state.leds & 4) ? "G" : "-", 1.11 (state.leds & 2) ? "Y" : "-", 1.12 (state.leds & 1) ? "R" : "-"); 1.13 +#endif 1.14 } 1.15 handled = true; 1.16 break;