From c1a4a83f44d34aa96fed17e4ade87cc8cbd8fcc0 Mon Sep 17 00:00:00 2001 From: nifi Date: Sun, 31 Jan 2010 16:47:44 +0000 Subject: [PATCH] Updated to match the new sensors API and fixed argument that should be const --- examples/jcreate/announce-blink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/jcreate/announce-blink.c b/examples/jcreate/announce-blink.c index e6fb66658..ed4fb00e5 100644 --- a/examples/jcreate/announce-blink.c +++ b/examples/jcreate/announce-blink.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: announce-blink.c,v 1.1 2009/03/24 19:45:46 adamdunkels Exp $ + * $Id: announce-blink.c,v 1.2 2010/01/31 16:47:44 nifi Exp $ */ /** @@ -109,7 +109,7 @@ remove_neighbor(void *dummy) } /*---------------------------------------------------------------------------*/ static void -received_announcement(struct announcement *a, rimeaddr_t *from, +received_announcement(struct announcement *a, const rimeaddr_t *from, uint16_t id, uint16_t value) { struct neighbor_entry *e; @@ -169,7 +169,7 @@ PROCESS_THREAD(announce_blink_process, ev, data) #endif /* CONTIKI_TARGET_NATIVE */ #if CONTIKI_TARGET_SKY - acc_sensor.activate(); + SENSORS_ACTIVATE(acc_sensor); /* Lower the transmission power for the announcements so that only close-range neighbors are noticed. (Makes for a nicer visual