mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-07-06 19:29:08 +00:00
Only set CC13xx prop mode channel if a new channel is being requested
This commit is contained in:
parent
320a753666
commit
b4393e861f
@ -1066,6 +1066,12 @@ set_value(radio_param_t param, radio_value_t value)
|
|||||||
return RADIO_RESULT_INVALID_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);
|
set_channel((uint8_t)value);
|
||||||
break;
|
break;
|
||||||
case RADIO_PARAM_TXPOWER:
|
case RADIO_PARAM_TXPOWER:
|
||||||
|
Loading…
Reference in New Issue
Block a user