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