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.
2 parents 9b5e1c9 + 4a204bd commit caf53d1Copy full SHA for caf53d1
source/MAC/IEEE802_15_4/mac_mlme.c
@@ -1512,8 +1512,9 @@ int8_t mac_mlme_rf_channel_change(protocol_interface_rf_mac_setup_s *rf_mac_setu
1512
return 0;
1513
}
1514
platform_enter_critical();
1515
- rf_mac_setup->mac_channel = new_channel;
1516
- 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;
1517
+ }
1518
platform_exit_critical();
1519
1520
0 commit comments