Skip to content

stop blink timer in autoConnLed(false)#865

Merged
hathach merged 2 commits into
masterfrom
fix-auto-led-conn
Mar 18, 2026
Merged

stop blink timer in autoConnLed(false)#865
hathach merged 2 commits into
masterfrom
fix-auto-led-conn

Conversation

@hathach

@hathach hathach commented Mar 18, 2026

Copy link
Copy Markdown
Member

better fix for #862 since there is no callback wasting cpu cycle

Copilot AI review requested due to automatic review settings March 18, 2026 11:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Bluefruit52 library’s connection LED control so disabling the auto connection LED also stops the underlying blink timer, preventing continued LED toggling/background timer activity when the feature is turned off.

Changes:

  • Modify AdafruitBluefruit::autoConnLed(bool enabled) to stop the LED blink timer when enabled == false.
  • Reformat the autoConnLed definition (brace placement changed).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread libraries/Bluefruit52Lib/src/bluefruit.cpp

void AdafruitBluefruit::autoConnLed(bool enabled)
{
void AdafruitBluefruit::autoConnLed(bool enabled) {
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@hathach hathach merged commit fa129c2 into master Mar 18, 2026
16 checks passed
@hathach hathach deleted the fix-auto-led-conn branch March 18, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants