From 7904a7e29490456118e152d6b02c84b1e119e49b Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Tue, 22 May 2007 22:10:30 +0000 Subject: [PATCH] Made it compile again. --- core/net/mac/xmac.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/net/mac/xmac.c b/core/net/mac/xmac.c index 02050575c..32d6697a2 100644 --- a/core/net/mac/xmac.c +++ b/core/net/mac/xmac.c @@ -30,7 +30,7 @@ * * This file is part of the Contiki operating system. * - * $Id: xmac.c,v 1.4 2007/05/22 20:55:24 adamdunkels Exp $ + * $Id: xmac.c,v 1.5 2007/05/22 22:10:30 oliverschmidt Exp $ */ /** @@ -184,7 +184,8 @@ powercycle(struct rtimer *t, void *ptr) radio->off(); radio_is_on = 0; LEDS_OFF(LEDS_RED); - if(rtimer_set(t, RTIMER_TIME(t) + OFF_TIME, 1, powercycle, ptr)) { + if(rtimer_set(t, RTIMER_TIME(t) + OFF_TIME, 1, + (void (*)(struct rtimer *, void *))powercycle, ptr)) { PRINTF("xmac: could not set long off rtimer\n"); } long_off = 0;