From 27bc3f771a84fb7fe8b935e23f46f62e706d8647 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 2 Oct 2008 21:08:58 +0000 Subject: [PATCH] printing message when packet sent + changed period to 2 seconds (can be run unchanged with x-mac) --- examples/rime/example-abc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/rime/example-abc.c b/examples/rime/example-abc.c index 5488e7902..8e255f9b6 100644 --- a/examples/rime/example-abc.c +++ b/examples/rime/example-abc.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: example-abc.c,v 1.1 2008/01/25 18:00:50 adamdunkels Exp $ + * $Id: example-abc.c,v 1.2 2008/10/02 21:08:58 fros4943 Exp $ */ /** @@ -61,21 +61,21 @@ static struct abc_conn abc; PROCESS_THREAD(example_abc_process, ev, data) { PROCESS_EXITHANDLER(abc_close(&abc);) - + PROCESS_BEGIN(); abc_open(&abc, 128, &abc_call); while(1) { static struct etimer et; - - etimer_set(&et, CLOCK_SECOND); - + + etimer_set(&et, 2*CLOCK_SECOND); + PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et)); rimebuf_copyfrom("Hello", 6); abc_send(&abc); - + printf("abc message sent\n"); } PROCESS_END();