Skip to content

Commit

Permalink
Fix freq calculation for channels 64+
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Brusco committed Jan 16, 2024
1 parent dcd36ce commit bea6c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ldl_region.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ bool LDL_Region_getChannel(enum ldl_region region, uint8_t chIndex, uint32_t *fr
}
else if(chIndex < 72U){

*freq = U32(903000000) + ( U32(200000) * U32(chIndex - U32(64)));
*freq = U32(903000000) + ( U32(1600000) * U32(chIndex - U32(64)));
*minRate = 4U;
*maxRate = 4U;
}
Expand All @@ -373,7 +373,7 @@ bool LDL_Region_getChannel(enum ldl_region region, uint8_t chIndex, uint32_t *fr
}
else if(chIndex < 72U){

*freq = U32(915900000) + ( U32(200000) * (U32(chIndex) - U32(64)));
*freq = U32(915900000) + ( U32(1600000) * (U32(chIndex) - U32(64)));
*minRate = 6U;
*maxRate = 6U;
}
Expand Down

0 comments on commit bea6c6a

Please sign in to comment.