removed redundant sensor initialization, added comment
This commit is contained in:
parent
7b238a91af
commit
8aa8e26c54
1 changed files with 5 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)$Id: contiki-sky-main.c,v 1.34 2008/07/08 08:23:24 adamdunkels Exp $
|
* @(#)$Id: contiki-sky-main.c,v 1.35 2008/09/14 20:47:30 joxe Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -209,8 +209,7 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
leds_on(LEDS_GREEN);
|
leds_on(LEDS_GREEN);
|
||||||
ds2411_init();
|
ds2411_init();
|
||||||
sensors_light_init();
|
|
||||||
sht11_init();
|
|
||||||
leds_on(LEDS_BLUE);
|
leds_on(LEDS_BLUE);
|
||||||
xmem_init();
|
xmem_init();
|
||||||
|
|
||||||
|
@ -231,6 +230,9 @@ main(int argc, char **argv)
|
||||||
process_start(&etimer_process, NULL);
|
process_start(&etimer_process, NULL);
|
||||||
process_start(&sensors_process, NULL);
|
process_start(&sensors_process, NULL);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialize light and humitity/temp sensors.
|
||||||
|
*/
|
||||||
sensors_light_init();
|
sensors_light_init();
|
||||||
sht11_init();
|
sht11_init();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue