Skip to content

Fix: Antenna Mode Switch not working properly - #3675

Merged
mha1 merged 2 commits into
ExpressLRS:masterfrom
mha1:PR_fix_Antenna_Mode_Switch
Jun 17, 2026
Merged

mha1 merged 2 commits into
ExpressLRS:masterfrom
mha1:PR_fix_Antenna_Mode_Switch

Conversation

@mha1

@mha1 mha1 commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

Problem: Setting Antenna Mode to Switch is expected to send packets on alternating antennas. The logic to toggle between the antennas uses OtaNonce. But OtaNonce is not only incremented on packets sent but also if tlm is expected. With tlm ratio 1:2 selected this leads to OtaNonce%2 == 0 always returning false and selecting Antenna 2. Other tlm ratios do toggle the Antennas but in a irregular pattern favoring Antenna 2.

Solution: Change the toggling logic.

@mha1
mha1 merged commit 6af3c4a into ExpressLRS:master Jun 17, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants