Skip to content

fix(b&w): rotary encoder mode and enabled features not working in radio setup page#7387

Open
philmoz wants to merge 1 commit into
mainfrom
philmoz/fix-rotenc-mode
Open

fix(b&w): rotary encoder mode and enabled features not working in radio setup page#7387
philmoz wants to merge 1 commit into
mainfrom
philmoz/fix-rotenc-mode

Conversation

@philmoz
Copy link
Copy Markdown
Collaborator

@philmoz philmoz commented May 24, 2026

Fix radio setup page.
Broken in PR #7163

Fixes #7386, #7410

Required in 2.11, 2.12 and 3.0.

Summary by CodeRabbit

  • Bug Fixes
    • Adjusted the Radio Setup menu item layout and indexing across display configurations to ensure correct menu positioning and visual organization.

Review Change Stack

@philmoz philmoz added this to the 2.11.7 milestone May 24, 2026
@philmoz philmoz added UX-UI Related to user experience (UX) or user interface (UI) behaviour B&W Related generally to black and white LCD radios bug/regression ↩️ A new version of EdgeTX broke something labels May 24, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 24, 2026

📝 Walkthrough

Walkthrough

The PR adjusts menu item placeholder and conditional entry positions in the Radio Setup menu for 128x64 and 212x64 display variants. These changes correct the menu item-to-enum index mapping, fixing the RotEnc Mode selection issue where menu items became unhighlightable due to incorrect position tracking.

Changes

Radio Setup Menu Mapping

Layer / File(s) Summary
128x64 Display Menu Indexing Adjustment
radio/src/gui/128x64/radio_setup.cpp
Sound label entry replaces a prior placeholder at line 188, a new placeholder is inserted at line 231, and the conditional language slot sequence is reworked at lines 245–249 to realign subsequent menu item enum indices.
212x64 Display Menu Indexing Adjustment
radio/src/gui/212x64/radio_setup.cpp
An additional placeholder entry is inserted at line 231 in the menu initializer to shift subsequent items into correct enum alignment.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive The PR description references the broken PR and issue numbers, but lacks detailed explanation of what was changed and why. Add a summary of the specific changes made (e.g., how the menu item ordering was adjusted) and explain the root cause of the menu indexing issue in PR #7163.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the bug fix targeting rotary encoder mode issues in the radio setup page for B&W displays, directly aligned with the changeset.
Linked Issues check ✅ Passed The PR correctly addresses issue #7386 by fixing menu item indexing in radio setup pages, restoring access to the RotEnc Mode option that was broken by PR #7163.
Out of Scope Changes check ✅ Passed All changes are scoped to fixing the radio setup menu layout in both 128x64 and 212x64 display configurations, directly addressing the linked issue without unrelated modifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch philmoz/fix-rotenc-mode

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B&W Related generally to black and white LCD radios bug/regression ↩️ A new version of EdgeTX broke something UX-UI Related to user experience (UX) or user interface (UI) behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot change RotEnc Mode

1 participant