From ee60355c9c8ded25142c5793ccd1b0ce21a3ebd3 Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Thu, 23 Jun 2016 18:38:12 +0200 Subject: [PATCH] TSCH: implement off() --- core/net/mac/tsch/tsch.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/net/mac/tsch/tsch.c b/core/net/mac/tsch/tsch.c index e03d34a50..15a75fe80 100644 --- a/core/net/mac/tsch/tsch.c +++ b/core/net/mac/tsch/tsch.c @@ -1017,6 +1017,11 @@ turn_on(void) static int turn_off(int keep_radio_on) { + if(keep_radio_on) { + NETSTACK_RADIO.on(); + } else { + NETSTACK_RADIO.off(); + } return 1; } /*---------------------------------------------------------------------------*/