JN516x SDK 4170 build 1745 does not have vMMAC_SetChannel() function

- use only vMMAC_SetChannelAndPower()
- remove redundant call in init()
This commit is contained in:
Jaroslav Kysela 2018-03-13 20:10:46 +01:00
parent ee5833a447
commit 1575222e4e
1 changed files with 2 additions and 4 deletions

View File

@ -278,8 +278,7 @@ init(void)
vMMAC_EnableInterrupts(&radio_interrupt_handler); vMMAC_EnableInterrupts(&radio_interrupt_handler);
} }
vMMAC_ConfigureRadio(); vMMAC_ConfigureRadio();
set_channel(current_channel); set_txpower(current_tx_power); /* it sets also the current_channel */
set_txpower(current_tx_power);
vMMAC_GetMacAddress(&node_long_address); vMMAC_GetMacAddress(&node_long_address);
/* Short addresses are disabled by default */ /* Short addresses are disabled by default */
@ -493,8 +492,7 @@ void
set_channel(int c) set_channel(int c)
{ {
current_channel = c; current_channel = c;
/* will fine tune TX power as well */ vMMAC_SetChannelAndPower(current_channel, current_tx_power);
vMMAC_SetChannel(current_channel);
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#if !MICROMAC_RADIO_MAC #if !MICROMAC_RADIO_MAC