Skip to content

Commit

Permalink
Fixed RegionIN865RxParamSetupReq DrOffset verification
Browse files Browse the repository at this point in the history
  • Loading branch information
mluis1 committed Dec 7, 2020
1 parent 7ea85ff commit 184039f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mac/region/RegionIN865.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,9 +730,7 @@ uint8_t RegionIN865RxParamSetupReq( RxParamSetupReqParams_t* rxParamSetupReq )
}

// Verify datarate offset
if( ( RegionCommonValueInRange( rxParamSetupReq->DrOffset, IN865_MIN_RX1_DR_OFFSET, IN865_MAX_RX1_DR_OFFSET ) == false ) ||
// DR_6 is not supported by this region
( rxParamSetupReq->DrOffset == DR_6 ) )
if( RegionCommonValueInRange( rxParamSetupReq->DrOffset, IN865_MIN_RX1_DR_OFFSET, IN865_MAX_RX1_DR_OFFSET ) == false )
{
status &= 0xFB; // Rx1DrOffset range KO
}
Expand Down

0 comments on commit 184039f

Please sign in to comment.