No need to set the same channel again
This commit is contained in:
parent
27e373492d
commit
8d2dafbe30
|
@ -1219,6 +1219,12 @@ set_value(radio_param_t param, radio_value_t value)
|
||||||
return RADIO_RESULT_INVALID_VALUE;
|
return RADIO_RESULT_INVALID_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(cmd->channel == (uint8_t)value) {
|
||||||
|
/* We already have that very same channel configured.
|
||||||
|
* Nothing to do here. */
|
||||||
|
return RADIO_RESULT_OK;
|
||||||
|
}
|
||||||
|
|
||||||
cmd->channel = (uint8_t)value;
|
cmd->channel = (uint8_t)value;
|
||||||
break;
|
break;
|
||||||
case RADIO_PARAM_PAN_ID:
|
case RADIO_PARAM_PAN_ID:
|
||||||
|
|
Loading…
Reference in a new issue