We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9e2ea6 commit 4a204bdCopy full SHA for 4a204bd
source/MAC/IEEE802_15_4/mac_mlme.c
@@ -1510,8 +1510,9 @@ int8_t mac_mlme_rf_channel_change(protocol_interface_rf_mac_setup_s *rf_mac_setu
1510
return 0;
1511
}
1512
platform_enter_critical();
1513
- rf_mac_setup->mac_channel = new_channel;
1514
- rf_mac_setup->dev_driver->phy_driver->extension(PHY_EXTENSION_SET_CHANNEL, &rf_mac_setup->mac_channel);
+ if (rf_mac_setup->dev_driver->phy_driver->extension(PHY_EXTENSION_SET_CHANNEL, &new_channel) == 0) {
+ rf_mac_setup->mac_channel = new_channel;
1515
+ }
1516
platform_exit_critical();
1517
1518
0 commit comments