File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2397,11 +2397,8 @@ static LoRaMacStatus_t ScheduleTx( bool allowDelayedTx )
23972397 nextChan .Datarate = MacCtx .NvmCtx -> MacParams .ChannelsDatarate ;
23982398 nextChan .DutyCycleEnabled = MacCtx .NvmCtx -> DutyCycleOn ;
23992399 nextChan .QueryNextTxDelayOnly = false;
2400- if ( MacCtx .NvmCtx -> NetworkActivation == ACTIVATION_TYPE_NONE )
2401- {
2402- nextChan .Joined = false;
2403- }
2404- else
2400+ nextChan .Joined = false;
2401+ if ( MacCtx .NvmCtx -> NetworkActivation != ACTIVATION_TYPE_NONE )
24052402 {
24062403 nextChan .Joined = true;
24072404 }
@@ -2534,7 +2531,8 @@ static void CalculateBackOff( uint8_t channel )
25342531 calcBackOff .ElapsedTime = SysTimeSub ( SysTimeGetMcuTime ( ), MacCtx .NvmCtx -> InitializationTime );
25352532 calcBackOff .TxTimeOnAir = MacCtx .TxTimeOnAir ;
25362533 calcBackOff .LastTxIsJoinRequest = false;
2537- if ( ( MacCtx .MacFlags .Bits .MlmeReq == 1 ) && ( LoRaMacConfirmQueueIsCmdActive ( MLME_JOIN ) == true ) )
2534+
2535+ if ( MacCtx .NvmCtx -> NetworkActivation == ACTIVATION_TYPE_NONE )
25382536 {
25392537 calcBackOff .LastTxIsJoinRequest = true;
25402538 }
You can’t perform that action at this time.
0 commit comments