From e6215712caca86d23a7baa4ea1415913d48ef811 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 29 Apr 2009 11:46:20 +0000 Subject: [PATCH] When a node is configured as an IP gateway, we switch off the power-saving MAC protocolto improve performance and to avoid problems with the serial communication that X-MACs use of rtimers can cause --- platform/sky/contiki-sky-main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/sky/contiki-sky-main.c b/platform/sky/contiki-sky-main.c index 1cad18885..8382b1c2b 100644 --- a/platform/sky/contiki-sky-main.c +++ b/platform/sky/contiki-sky-main.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)$Id: contiki-sky-main.c,v 1.53 2009/04/10 00:40:08 adamdunkels Exp $ + * @(#)$Id: contiki-sky-main.c,v 1.54 2009/04/29 11:46:20 adamdunkels Exp $ */ #include @@ -182,6 +182,8 @@ set_gateway(void) uip_over_mesh_set_gateway(&rimeaddr_node_addr); uip_over_mesh_make_announced_gateway(); is_gateway = 1; + + rime_mac->off(1); } } #endif /* WITH_UIP */ @@ -383,7 +385,6 @@ main(int argc, char **argv) interrupt that sets the wake up flag. */ - /* We get the current processing time for interrupts that was done during the LPM and store it for next time around. */ dint();