From b4393e861f8be347b7f102d841c964d60620dc4c Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Mon, 9 Nov 2015 13:50:03 +0000 Subject: [PATCH] Only set CC13xx prop mode channel if a new channel is being requested --- cpu/cc26xx-cc13xx/rf-core/prop-mode.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpu/cc26xx-cc13xx/rf-core/prop-mode.c b/cpu/cc26xx-cc13xx/rf-core/prop-mode.c index 10bcbd00e..7f46c7aed 100644 --- a/cpu/cc26xx-cc13xx/rf-core/prop-mode.c +++ b/cpu/cc26xx-cc13xx/rf-core/prop-mode.c @@ -1066,6 +1066,12 @@ set_value(radio_param_t param, radio_value_t value) return RADIO_RESULT_INVALID_VALUE; } + if(get_channel() == (uint8_t)value) { + /* We already have that very same channel configured. + * Nothing to do here. */ + return RADIO_RESULT_OK; + } + set_channel((uint8_t)value); break; case RADIO_PARAM_TXPOWER: