Skip to content

Commit ca82700

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 <frederic.pillon@st.com>
1 parent 0198848 commit ca82700

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/STM32CubeWL/LoRaWAN/Mac/LoRaMac.c

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

16661666
// Set the pending status
16671667
// Fix for Class C Certification test. Re-enabled part of if condition previously removed.
1668-
if( ( ( ( Nvm.MacGroup1.SrvAckRequested == true ) || ( macMsgData.FHDR.FCtrl.Bits.FPending > 0 ) ) && ( Nvm.MacGroup2.DeviceClass == CLASS_A ) ) ||
1669-
( MacCtx.McpsIndication.ResponseTimeout > 0 ) )
1668+
if( ( ( ( Nvm.MacGroup1.SrvAckRequested == true ) || ( macMsgData.FHDR.FCtrl.Bits.FPending > 0 ) ) && ( Nvm.MacGroup2.DeviceClass == CLASS_A ) )
1669+
#if (defined( LORAMAC_VERSION ) && (( LORAMAC_VERSION == 0x01000400 ) || ( LORAMAC_VERSION == 0x01010100 )))
1670+
|| ( MacCtx.McpsIndication.ResponseTimeout > 0 )
1671+
#endif /* LORAMAC_VERSION */
1672+
)
16701673
//if( ( ( Nvm.MacGroup1.SrvAckRequested == true ) || ( macMsgData.FHDR.FCtrl.Bits.FPending > 0 ) ) && ( Nvm.MacGroup2.DeviceClass == CLASS_A ) )
16711674
{
16721675
MacCtx.McpsIndication.IsUplinkTxPending = 1;

0 commit comments

Comments
 (0)