Skip to content

Commit 67fb629

Browse files
committed
fix: regression introduce by update to 1.3.1
ResponseTimeout field not available for all LORAMAC_VERSION Signed-off-by: Frederic Pillon <[email protected]>
1 parent 9af3953 commit 67fb629

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/STM32CubeWL/LoRaWAN/Mac/LoRaMac.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,8 +1654,11 @@ static void ProcessRadioRxDone( void )
16541654

16551655
// Set the pending status
16561656
// Fix for Class C Certification test. Re-enabled part of if condition previously removed.
1657-
if( ( ( ( Nvm.MacGroup1.SrvAckRequested == true ) || ( macMsgData.FHDR.FCtrl.Bits.FPending > 0 ) ) && ( Nvm.MacGroup2.DeviceClass == CLASS_A ) ) ||
1658-
( MacCtx.McpsIndication.ResponseTimeout > 0 ) )
1657+
if( ( ( ( Nvm.MacGroup1.SrvAckRequested == true ) || ( macMsgData.FHDR.FCtrl.Bits.FPending > 0 ) ) && ( Nvm.MacGroup2.DeviceClass == CLASS_A ) )
1658+
#if (defined( LORAMAC_VERSION ) && (( LORAMAC_VERSION == 0x01000400 ) || ( LORAMAC_VERSION == 0x01010100 )))
1659+
|| ( MacCtx.McpsIndication.ResponseTimeout > 0 )
1660+
#endif /* LORAMAC_VERSION */
1661+
)
16591662
//if( ( ( Nvm.MacGroup1.SrvAckRequested == true ) || ( macMsgData.FHDR.FCtrl.Bits.FPending > 0 ) ) && ( Nvm.MacGroup2.DeviceClass == CLASS_A ) )
16601663
{
16611664
MacCtx.McpsIndication.IsUplinkTxPending = 1;

0 commit comments

Comments
 (0)