From 1fa81eac59a28d75d12f54c3ec0f98c4e96864a8 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Sun, 4 Apr 2010 12:27:31 +0000 Subject: [PATCH] Print out the name of the radio duty cycling mechanism instead of the MAC --- apps/shell/shell-rime.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/shell/shell-rime.c b/apps/shell/shell-rime.c index 67869c0e0..38f420856 100644 --- a/apps/shell/shell-rime.c +++ b/apps/shell/shell-rime.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: shell-rime.c,v 1.19 2010/03/25 08:52:23 adamdunkels Exp $ + * $Id: shell-rime.c,v 1.20 2010/04/04 12:27:31 adamdunkels Exp $ */ /** @@ -48,6 +48,7 @@ #include "lib/random.h" #include "net/rime.h" +#include "net/netstack.h" #include "net/rime/route.h" #include "net/rime/timesynch.h" @@ -123,10 +124,10 @@ PROCESS_THREAD(shell_mac_process, ev, data) shell_output_str(&mac_command, "mac usage: ", mac_command.description); } else { if(onoroff) { - rime_mac->on(); - shell_output_str(&mac_command, "mac: turned MAC on: ", rime_mac->name); + NETSTACK_RDC.on(); + shell_output_str(&mac_command, "mac: turned MAC on: ", NETSTACK_RDC.name); } else { - rime_mac->off(1); + NETSTACK_RDC.off(1); shell_output_str(&mac_command, "mac: turned MAC off (keeping radio on): ", rime_mac->name); }