@@ -904,9 +904,9 @@ static void ProcessRadioTxDone( void )
904904 }
905905
906906 // Store last Tx channel
907- MacCtx .NvmCtx -> LastTxChannel = MacCtx .NvmCtx -> Channel ;
907+ MacCtx .NvmCtx -> LastTxChannel = MacCtx .Channel ;
908908 // Update last tx done time for the current channel
909- txDone .Channel = MacCtx .NvmCtx -> Channel ;
909+ txDone .Channel = MacCtx .Channel ;
910910 if ( MacCtx .NvmCtx -> NetworkActivation == ACTIVATION_TYPE_NONE )
911911 {
912912 txDone .Joined = false;
@@ -1725,7 +1725,7 @@ static void OnRxWindow1TimerEvent( void* context )
17251725 TimerStop ( & MacCtx .RxWindowTimer1 );
17261726 MacCtx .RxSlot = RX_SLOT_WIN_1 ;
17271727
1728- MacCtx .RxWindow1Config .Channel = MacCtx .NvmCtx -> Channel ;
1728+ MacCtx .RxWindow1Config .Channel = MacCtx .Channel ;
17291729 MacCtx .RxWindow1Config .DrOffset = MacCtx .NvmCtx -> MacParams .Rx1DrOffset ;
17301730 MacCtx .RxWindow1Config .DownlinkDwellTime = MacCtx .NvmCtx -> MacParams .DownlinkDwellTime ;
17311731 MacCtx .RxWindow1Config .RepeaterSupport = MacCtx .NvmCtx -> RepeaterSupport ;
@@ -1745,7 +1745,7 @@ static void OnRxWindow2TimerEvent( void* context )
17451745{
17461746 TimerStop ( & MacCtx .RxWindowTimer2 );
17471747
1748- MacCtx .RxWindow2Config .Channel = MacCtx .NvmCtx -> Channel ;
1748+ MacCtx .RxWindow2Config .Channel = MacCtx .Channel ;
17491749 MacCtx .RxWindow2Config .Frequency = MacCtx .NvmCtx -> MacParams .Rx2Channel .Frequency ;
17501750 MacCtx .RxWindow2Config .DownlinkDwellTime = MacCtx .NvmCtx -> MacParams .DownlinkDwellTime ;
17511751 MacCtx .RxWindow2Config .RepeaterSupport = MacCtx .NvmCtx -> RepeaterSupport ;
@@ -2372,7 +2372,7 @@ static LoRaMacStatus_t ScheduleTx( bool allowDelayedTx )
23722372 nextChan .LastAggrTx = MacCtx .NvmCtx -> AggregatedLastTxDoneTime ;
23732373
23742374 // Select channel
2375- status = RegionNextChannel ( MacCtx .NvmCtx -> Region , & nextChan , & MacCtx .NvmCtx -> Channel , & dutyCycleTimeOff , & MacCtx .NvmCtx -> AggregatedTimeOff );
2375+ status = RegionNextChannel ( MacCtx .NvmCtx -> Region , & nextChan , & MacCtx .Channel , & dutyCycleTimeOff , & MacCtx .NvmCtx -> AggregatedTimeOff );
23762376
23772377 if ( status != LORAMAC_STATUS_OK )
23782378 {
@@ -2429,14 +2429,14 @@ static LoRaMacStatus_t ScheduleTx( bool allowDelayedTx )
24292429 }
24302430
24312431 // Secure frame
2432- LoRaMacStatus_t retval = SecureFrame ( MacCtx .NvmCtx -> MacParams .ChannelsDatarate , MacCtx .NvmCtx -> Channel );
2432+ LoRaMacStatus_t retval = SecureFrame ( MacCtx .NvmCtx -> MacParams .ChannelsDatarate , MacCtx .Channel );
24332433 if ( retval != LORAMAC_STATUS_OK )
24342434 {
24352435 return retval ;
24362436 }
24372437
24382438 // Try to send now
2439- return SendFrameOnChannel ( MacCtx .NvmCtx -> Channel );
2439+ return SendFrameOnChannel ( MacCtx .Channel );
24402440}
24412441
24422442static LoRaMacStatus_t SecureFrame ( uint8_t txDr , uint8_t txCh )
@@ -2564,8 +2564,8 @@ static void ResetMacParameters( void )
25642564 RegionInitDefaults ( MacCtx .NvmCtx -> Region , & params );
25652565
25662566 // Initialize channel index.
2567- MacCtx .NvmCtx -> Channel = 0 ;
2568- MacCtx .NvmCtx -> LastTxChannel = MacCtx .NvmCtx -> Channel ;
2567+ MacCtx .Channel = 0 ;
2568+ MacCtx .NvmCtx -> LastTxChannel = MacCtx .Channel ;
25692569}
25702570
25712571static void OpenContinuousRx2Window ( void )
@@ -2749,7 +2749,7 @@ LoRaMacStatus_t SetTxContinuousWave( uint16_t timeout )
27492749{
27502750 ContinuousWaveParams_t continuousWave ;
27512751
2752- continuousWave .Channel = MacCtx .NvmCtx -> Channel ;
2752+ continuousWave .Channel = MacCtx .Channel ;
27532753 continuousWave .Datarate = MacCtx .NvmCtx -> MacParams .ChannelsDatarate ;
27542754 continuousWave .TxPower = MacCtx .NvmCtx -> MacParams .ChannelsTxPower ;
27552755 continuousWave .MaxEirp = MacCtx .NvmCtx -> MacParams .MaxEirp ;
0 commit comments