Skip to content

Commit

Permalink
fix allowed rates for low bauds
Browse files Browse the repository at this point in the history
  • Loading branch information
JyeSmith committed Sep 25, 2024
1 parent 2807404 commit e6729c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/LUA/tx_devLUA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ static void recalculatePacketRateOptions(int minInterval)
{
uint8_t rate = i;
rate = RATE_MAX - 1 - rate;
bool rateAllowed = get_elrs_airRateConfig(rate)->interval >= minInterval;
bool rateAllowed = (get_elrs_airRateConfig(rate)->interval * get_elrs_airRateConfig(rate)->numOfSends) >= minInterval;
const char *semi = strchrnul(pos, ';');
if (rateAllowed)
{
Expand Down

0 comments on commit e6729c9

Please sign in to comment.