Skip to content

Commit 3b165c5

Browse files
committed
fix: regression introduce by update to 1.4.0
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent ca82700 commit 3b165c5

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/STM32CubeWL/LoRaWAN/Mac/Region/RegionAS923.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
*/
4444
#include "../../../SubGHz_Phy/radio.h"
4545
#include "RegionAS923.h"
46-
#include "LmHandler.h"
4746

4847
// Definitions
4948
#define CHANNELS_MASK_SIZE 1
@@ -1015,8 +1014,6 @@ uint8_t RegionAS923RxParamSetupReq( RxParamSetupReqParams_t* rxParamSetupReq )
10151014
{
10161015
uint8_t status = 0x07;
10171016
#if defined( REGION_AS923 )
1018-
int8_t datarate;
1019-
LmHandlerGetTxDatarate( &datarate );
10201017
// Verify radio frequency
10211018
if( VerifyRfFreq( rxParamSetupReq->Frequency ) == false )
10221019
{
@@ -1030,7 +1027,7 @@ uint8_t RegionAS923RxParamSetupReq( RxParamSetupReqParams_t* rxParamSetupReq )
10301027
}
10311028

10321029
// Verify datarate offset
1033-
if( RegionCommonValueInRange( rxParamSetupReq->DrOffset, AS923_MIN_RX1_DR_OFFSET, AS923_MAX_RX1_DR_OFFSET ) && (EffectiveRx1DrOffsetDownlinkDwell0AS923[datarate][rxParamSetupReq->DrOffset]<=AS923_RX_MAX_DATARATE) == false )
1030+
if( RegionCommonValueInRange( rxParamSetupReq->DrOffset, AS923_MIN_RX1_DR_OFFSET, AS923_MAX_RX1_DR_OFFSET ) == false )
10341031
{
10351032
status &= 0xFB; // Rx1DrOffset range KO
10361033
}

src/STM32CubeWL/LoRaWAN/Mac/Region/RegionUS915.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ LoRaMacStatus_t RegionUS915NextChannel( NextChanParams_t* nextChanParams, uint8_
991991
identifyChannelsParam.MaxBands = US915_MAX_NB_BANDS;
992992

993993
#if (defined( REGION_VERSION ) && ( REGION_VERSION == 0x01010003 ))
994-
identifyChannelsParam.ElapsedTimeSinceStartUp = nextChanParams->ElapsedTimeSinceStartUp;
994+
identifyChannelsParam.ElapsedTimeSinceTxBackoffRefTime = nextChanParams->ElapsedTimeSinceTxBackoffRefTime;
995995
identifyChannelsParam.LastTxIsJoinRequest = nextChanParams->LastTxIsJoinRequest;
996996
identifyChannelsParam.ExpectedTimeOnAir = GetTimeOnAir( nextChanParams->Datarate, nextChanParams->PktLen );
997997

0 commit comments

Comments
 (0)