Skip to content

Commit

Permalink
Merge pull request #52 from gonzabrusco/fix-channels-freq
Browse files Browse the repository at this point in the history
Fix frequency calculation for channels > 64
  • Loading branch information
cjhdev authored Jan 30, 2024
2 parents 119b960 + bea6c6a commit e017b22
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 e017b22

Please sign in to comment.