Skip to content

Commit fdf855d

Browse files
committed
Issue #1064 - Fixed array size computation
1 parent d9d83bd commit fdf855d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/apps/LoRaMac/common/LmHandler/packages/LmhpCompliance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static void LmhpComplianceOnMcpsIndication( McpsIndication_t* mcpsIndication )
346346
uint32_t periodicity[] = { 0, 5000, 10000, 20000, 30000, 40000, 50000, 60000, 120000, 240000, 480000 };
347347
uint8_t index = mcpsIndication->Buffer[cmdIndex++];
348348

349-
if( index < ( sizeof( periodicity ) / sizeof( uint16_t ) ) )
349+
if( index < ( sizeof( periodicity ) / sizeof( uint32_t ) ) )
350350
{
351351
if( ComplianceParams->OnTxPeriodicityChanged != NULL )
352352
{

0 commit comments

Comments
 (0)