Skip to content

refactor(boot): move BT and rotary encoder init to board specifics#7316

Merged
pfeerick merged 1 commit into
2.12from
2.12-bt-bl-cleanup
Apr 29, 2026
Merged

refactor(boot): move BT and rotary encoder init to board specifics#7316
pfeerick merged 1 commit into
2.12from
2.12-bt-bl-cleanup

Conversation

@raphaelcoeffic
Copy link
Copy Markdown
Member

Backport of #7265 for 2.12.

…ifics

Move bootloader Bluetooth GPIO disable into boardBLEarlyInit() for
taranis and horus targets, and rotary encoder init into boardBLInit()
for all targets that use it. This removes board-specific #ifdef logic
from the generic bootloader code.

Also move bluetooth_driver.cpp from BOARD_COMMON_SRC (shared by
bootloader and firmware) to firmware-only via target_sources(), and
remove the #if !defined(BOOT) guards from the driver since it is no
longer compiled for the bootloader.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@raphaelcoeffic raphaelcoeffic added this to the 2.12.1 milestone Apr 23, 2026
@pfeerick pfeerick added house keeping 🧹 Cleanup of code and house keeping labels Apr 25, 2026
@pfeerick pfeerick merged commit cdf70b5 into 2.12 Apr 29, 2026
50 checks passed
@pfeerick pfeerick deleted the 2.12-bt-bl-cleanup branch April 29, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

house keeping 🧹 Cleanup of code and house keeping

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants