We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b13d0e4 commit 4a2088cCopy full SHA for 4a2088c
src/apps/LoRaMac/common/LmHandler/packages/LmhpCompliance.c
@@ -473,13 +473,16 @@ static void LmhpComplianceOnMcpsIndication( McpsIndication_t* mcpsIndication )
473
474
static void LmhpComplianceProcess( void )
475
{
476
+ bool isPending;
477
+
478
CRITICAL_SECTION_BEGIN( );
- if( ComplianceTestState.TxPending == true )
479
+ isPending = ComplianceTestState.TxPending;
480
+ ComplianceTestState.TxPending = false;
481
+ CRITICAL_SECTION_END( );
482
+ if( isPending == true )
483
484
LmhpComplianceTxProcess( );
- ComplianceTestState.TxPending = false;
485
}
- CRITICAL_SECTION_END( );
486
487
488
static void OnComplianceTxNextPacketTimerEvent( void* context )
0 commit comments