From 7859b3c18945ed8802c8b9d5f4ac13c320e9b527 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Sun, 11 Mar 2018 14:38:20 +0000 Subject: [PATCH] Only print RADIO_PARAM_PAN_ID if the radio supports it --- arch/platform/srf06-cc26xx/platform.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/platform/srf06-cc26xx/platform.c b/arch/platform/srf06-cc26xx/platform.c index cafca84ff..4d2fca2fb 100644 --- a/arch/platform/srf06-cc26xx/platform.c +++ b/arch/platform/srf06-cc26xx/platform.c @@ -200,7 +200,6 @@ platform_init_stage_three() set_rf_params(); NETSTACK_RADIO.get_value(RADIO_PARAM_CHANNEL, &chan); - NETSTACK_RADIO.get_value(RADIO_PARAM_PAN_ID, &pan); LOG_DBG("With DriverLib v%u.%u\n", DRIVERLIB_RELEASE_GROUP, DRIVERLIB_RELEASE_BUILD); @@ -210,7 +209,13 @@ platform_init_stage_three() ti_lib_chipinfo_chip_family_is_cc13xx() == true ? "Yes" : "No", ti_lib_chipinfo_supports_ble() == true ? "Yes" : "No", ti_lib_chipinfo_supports_proprietary() == true ? "Yes" : "No"); - LOG_INFO(" RF: Channel %d, PANID 0x%04X\n", chan, pan); + LOG_INFO(" RF: Channel %d", chan); + + if(NETSTACK_RADIO.get_value(RADIO_PARAM_PAN_ID, &pan) == RADIO_RESULT_OK) { + LOG_INFO_(", PANID 0x%04X", pan); + } + LOG_INFO_("\n"); + LOG_INFO(" Node ID: %d\n", node_id); process_start(&sensors_process, NULL);