Skip to content

Commit 1852d89

Browse files
committed
Fixed certification test application handling
1 parent 3e2ef70 commit 1852d89

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/apps/LoRaMac/common/LmHandler/packages/LmhpCompliance.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ static void LmhpComplianceOnMlmeConfirm( MlmeConfirm_t *mlmeConfirm )
213213
return;
214214
}
215215

216+
if( ComplianceTestState.IsRunning == false )
217+
{
218+
return;
219+
}
220+
216221
if( mlmeConfirm->MlmeRequest == MLME_LINK_CHECK )
217222
{
218223
ComplianceTestState.LinkCheck = true;
@@ -228,6 +233,11 @@ static LmHandlerErrorStatus_t LmhpComplianceTxProcess( void )
228233
return LORAMAC_HANDLER_ERROR;
229234
}
230235

236+
if( ComplianceTestState.IsRunning == false )
237+
{
238+
return LORAMAC_HANDLER_SUCCESS;
239+
}
240+
231241
if( ComplianceTestState.LinkCheck == true )
232242
{
233243
ComplianceTestState.LinkCheck = false;

0 commit comments

Comments
 (0)