From d8cdc5f802776917e932291e57de6d57e7cd9ffa Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Fri, 13 Apr 2018 02:34:49 -0700 Subject: [PATCH] Adopt IEEE802154_DEFAULT_CHANNEL in examples that use it --- examples/coap/coap-example-server.c | 4 ++-- examples/coap/plugtest-server.c | 4 ++-- examples/coap/project-conf.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/coap/coap-example-server.c b/examples/coap/coap-example-server.c index 41ea53744..798f7627d 100644 --- a/examples/coap/coap-example-server.c +++ b/examples/coap/coap-example-server.c @@ -107,8 +107,8 @@ PROCESS_THREAD(er_example_server, ev, data) PRINTF("Starting Erbium Example Server\n"); -#ifdef RF_CHANNEL - PRINTF("RF channel: %u\n", RF_CHANNEL); +#ifdef IEEE802154_DEFAULT_CHANNEL + PRINTF("RF channel: %u\n", IEEE802154_DEFAULT_CHANNEL); #endif #ifdef IEEE802154_PANID PRINTF("PAN ID: 0x%04X\n", IEEE802154_PANID); diff --git a/examples/coap/plugtest-server.c b/examples/coap/plugtest-server.c index 7ca53bc2d..c3b005d1d 100644 --- a/examples/coap/plugtest-server.c +++ b/examples/coap/plugtest-server.c @@ -82,8 +82,8 @@ PROCESS_THREAD(plugtest_server, ev, data) PRINTF("ETSI IoT CoAP Plugtests Server\n"); -#ifdef RF_CHANNEL - PRINTF("RF channel: %u\n", RF_CHANNEL); +#ifdef IEEE802154_DEFAULT_CHANNEL + PRINTF("RF channel: %u\n", IEEE802154_DEFAULT_CHANNEL); #endif #ifdef IEEE802154_PANID PRINTF("PAN ID: 0x%04X\n", IEEE802154_PANID); diff --git a/examples/coap/project-conf.h b/examples/coap/project-conf.h index 115d6fbb0..e7294b5ec 100644 --- a/examples/coap/project-conf.h +++ b/examples/coap/project-conf.h @@ -40,7 +40,7 @@ #define PROJECT_ERBIUM_CONF_H_ /* Custom channel and PAN ID configuration for your project. */ -/* #define RF_CHANNEL 26 */ +/* #define IEEE802154_CONF_DEFAULT_CHANNEL 26 */ /* #define IEEE802154_CONF_PANID 0xABCD */ /* IP buffer size must match all other hops, in particular the border router. */