From 97b7a9a2097f7bd886e2b9cd0a0c3eabce25e5ce Mon Sep 17 00:00:00 2001 From: joxe Date: Tue, 2 Feb 2010 21:41:54 +0000 Subject: [PATCH] instantiated file-description and fixed style --- examples/sky/test-button.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/sky/test-button.c b/examples/sky/test-button.c index 4d85f3c77..8f3ac2251 100644 --- a/examples/sky/test-button.c +++ b/examples/sky/test-button.c @@ -28,12 +28,13 @@ * * This file is part of the Contiki operating system. * - * $Id: test-button.c,v 1.4 2010/02/02 21:17:32 joxe Exp $ + * $Id: test-button.c,v 1.5 2010/02/02 21:41:54 joxe Exp $ */ /** * \file - * A brief description of what this file is. + * An example of how to use the button and light sensor on + * the Tmote Sky platform. * \author * Adam Dunkels */ @@ -58,7 +59,7 @@ PROCESS_THREAD(test_button_process, ev, data) PROCESS_WAIT_EVENT_UNTIL(ev == sensors_event && data == &button_sensor); leds_toggle(LEDS_ALL); - if (!active) { + if(!active) { /* activate light sensor */ SENSORS_ACTIVATE(light_sensor); printf("Light: %d\n", light_sensor.value(0));