Skip to content

Commit eb0e196

Browse files
committed
Fixed an issue reported by the test houses on the AdrAckReq bit handling
1 parent b1a5387 commit eb0e196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mac/LoRaMac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2311,7 +2311,7 @@ static bool AdrNextDr( bool adrEnabled, bool updateChannelMask, int8_t* datarate
23112311
}
23122312
if( AdrAckCounter >= ( ADR_ACK_LIMIT + ADR_ACK_DELAY ) )
23132313
{
2314-
if( ( AdrAckCounter % ADR_ACK_DELAY ) == 0 )
2314+
if( ( AdrAckCounter % ADR_ACK_DELAY ) == 1 )
23152315
{
23162316
#if defined( USE_BAND_433 ) || defined( USE_BAND_780 ) || defined( USE_BAND_868 )
23172317
if( datarate > LORAMAC_TX_MIN_DATARATE )

0 commit comments

Comments
 (0)