fixed to compile with new sensors API

This commit is contained in:
joxe 2010-01-14 14:32:22 +00:00
parent 480f72c95c
commit a6abcbe578
7 changed files with 14 additions and 16 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: example-multihop.c,v 1.5 2009/10/18 17:52:08 adamdunkels Exp $
* $Id: example-multihop.c,v 1.6 2010/01/14 14:32:22 joxe Exp $
*/
/**
@ -220,8 +220,8 @@ PROCESS_THREAD(example_multihop_process, ev, data)
received_announcement);
/* Activate the button sensor. We use the button to drive traffic -
when the btton is pressed, a packet is sent. */
button_sensor.activate();
when the button is pressed, a packet is sent. */
button_sensor.configure(SENSORS_ACTIVE, (void *) 1);
/* Loop forever, send a packet when the button is pressed. */
while(1) {