Merge pull request #1233 from adamdunkels/pr/26xx-13xx-fixes

CC26xx/CC13xx fixes
This commit is contained in:
George Oikonomou 2015-11-09 08:33:58 +00:00
commit a63efe947f
5 changed files with 46 additions and 17 deletions

View file

@ -853,6 +853,11 @@ transmit(unsigned short transmit_len)
*/
rf_core_cmd_done_dis();
if(was_off) {
off();
}
return ret;
}
/*---------------------------------------------------------------------------*/
@ -1105,6 +1110,8 @@ off(void)
rx_off();
rf_core_power_down();
ENERGEST_OFF(ENERGEST_TYPE_LISTEN);
/* Switch HF clock source to the RCOSC to preserve power */
oscillators_switch_to_hf_rc();
@ -1214,6 +1221,12 @@ set_value(radio_param_t param, radio_value_t 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;
break;
case RADIO_PARAM_PAN_ID: