Skip to content

Commit

Permalink
Exclude LmhpComplianceTxProcess function call from the critical section.
Browse files Browse the repository at this point in the history
  • Loading branch information
mluis1 committed Jul 9, 2019
1 parent b13d0e4 commit 4a2088c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/apps/LoRaMac/common/LmHandler/packages/LmhpCompliance.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,16 @@ static void LmhpComplianceOnMcpsIndication( McpsIndication_t* mcpsIndication )

static void LmhpComplianceProcess( void )
{
bool isPending;

CRITICAL_SECTION_BEGIN( );
if( ComplianceTestState.TxPending == true )
isPending = ComplianceTestState.TxPending;
ComplianceTestState.TxPending = false;
CRITICAL_SECTION_END( );
if( isPending == true )
{
LmhpComplianceTxProcess( );
ComplianceTestState.TxPending = false;
}
CRITICAL_SECTION_END( );
}

static void OnComplianceTxNextPacketTimerEvent( void* context )
Expand Down

0 comments on commit 4a2088c

Please sign in to comment.