File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
features/lorawan/lorastack/mac Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ void LoRaMacChannelPlan::activate_channelplan_subsystem(LoRaPHY *phy)
40
40
41
41
lorawan_status_t LoRaMacChannelPlan::set_plan (const lorawan_channelplan_t & plan)
42
42
{
43
- channel_params_t mac_layer_ch_params;
44
43
lorawan_status_t status;
45
44
46
45
uint8_t max_num_channels;
@@ -57,16 +56,7 @@ lorawan_status_t LoRaMacChannelPlan::set_plan(const lorawan_channelplan_t& plan)
57
56
}
58
57
59
58
for (uint8_t i = 0 ; i < plan.nb_channels ; i++) {
60
-
61
- mac_layer_ch_params.band = plan.channels [i].ch_param .band ;
62
-
63
- mac_layer_ch_params.dr_range .fields .max = plan.channels [i].ch_param .dr_range .fields .max ;
64
- mac_layer_ch_params.dr_range .fields .min = plan.channels [i].ch_param .dr_range .fields .min ;
65
- mac_layer_ch_params.dr_range .value = plan.channels [i].ch_param .dr_range .value ;
66
- mac_layer_ch_params.frequency = plan.channels [i].ch_param .frequency ;
67
- mac_layer_ch_params.rx1_frequency = plan.channels [i].ch_param .rx1_frequency ;
68
-
69
- status = _lora_phy->add_channel (&mac_layer_ch_params, plan.channels [i].id );
59
+ status = _lora_phy->add_channel (&plan.channels [i].ch_param , plan.channels [i].id );
70
60
71
61
if (status != LORAWAN_STATUS_OK) {
72
62
return status;
You can’t perform that action at this time.
0 commit comments