Skip to content

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

Merged
pfeerick merged 1 commit intomainfrom
bt-bl-cleanup
Apr 29, 2026
Merged

refactor(boot): move BT and rotary encoder init to board specifics#7265
pfeerick merged 1 commit intomainfrom
bt-bl-cleanup

Conversation

@raphaelcoeffic
Copy link
Copy Markdown
Member

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.

…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 3.0 milestone Apr 6, 2026
@pfeerick pfeerick added house keeping 🧹 Cleanup of code and house keeping labels Apr 25, 2026
Comment thread radio/src/targets/horus/board.cpp
@pfeerick pfeerick merged commit 559866c into main Apr 29, 2026
39 of 59 checks passed
@pfeerick pfeerick deleted the 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