File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
features/lorawan/lorastack/mac Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1102,7 +1102,6 @@ lorawan_status_t LoRaMac::schedule_tx(void)
1102
1102
{
1103
1103
lorawan_time_t dutyCycleTimeOff = 0 ;
1104
1104
channel_selection_params_t nextChan;
1105
- lorawan_status_t status = LORAWAN_STATUS_PARAMETER_INVALID;
1106
1105
1107
1106
if (_params.sys_params .max_duty_cycle == 255 ) {
1108
1107
return LORAWAN_STATUS_DEVICE_OFF;
@@ -1121,9 +1120,10 @@ lorawan_status_t LoRaMac::schedule_tx(void)
1121
1120
nextChan.joined = _is_nwk_joined;
1122
1121
nextChan.last_aggregate_tx_time = _params.timers .aggregated_last_tx_time ;
1123
1122
1124
- status = _lora_phy.set_next_channel (&nextChan, &_params.channel ,
1125
- &dutyCycleTimeOff,
1126
- &_params.timers .aggregated_timeoff );
1123
+ lorawan_status_t status = _lora_phy.set_next_channel (&nextChan,
1124
+ &_params.channel ,
1125
+ &dutyCycleTimeOff,
1126
+ &_params.timers .aggregated_timeoff );
1127
1127
switch (status) {
1128
1128
case LORAWAN_STATUS_NO_CHANNEL_FOUND:
1129
1129
case LORAWAN_STATUS_NO_FREE_CHANNEL_FOUND:
You can’t perform that action at this time.
0 commit comments