added #ifdef DEBUG around "key down" debug printf

Tue, 26 Aug 2008 22:13:49 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Tue, 26 Aug 2008 22:13:49 +0100
changeset 9
1519a9a8d924
parent 8
fd84ec9e11df
child 10
f76c929f65e6

added #ifdef DEBUG around "key down" debug printf

test/lpfklife.c file | annotate | diff | revisions
     1.1 diff -r fd84ec9e11df -r 1519a9a8d924 test/lpfklife.c
     1.2 --- a/test/lpfklife.c	Tue Aug 26 22:05:07 2008 +0100
     1.3 +++ b/test/lpfklife.c	Tue Aug 26 22:13:49 2008 +0100
     1.4 @@ -97,7 +97,9 @@
     1.5  		i = lpfk_read(&ctx);
     1.6  
     1.7  		if (i >= 0) {
     1.8 +#ifdef DEBUG
     1.9  			printf("key %d\n", i);
    1.10 +#endif
    1.11  			// Key down, toggle the LED
    1.12  			lpfk_set_led(&ctx, i, !lpfk_get_led(&ctx, i));
    1.13