Skip to content

Make heartbeat LED play nice with other LEDs#10423

Merged
jp-bennett merged 2 commits into
masterfrom
smarter-heartbeat
May 8, 2026
Merged

Make heartbeat LED play nice with other LEDs#10423
jp-bennett merged 2 commits into
masterfrom
smarter-heartbeat

Conversation

@jp-bennett

Copy link
Copy Markdown
Collaborator

Existing change had some odd edge case behavior. Make LEDs dance together in harmony.

@github-actions github-actions Bot added needs-review Needs human review bugfix Pull request that fixes bugs labels May 8, 2026

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

This PR refines StatusLEDModule’s heartbeat LED behavior so it doesn’t interfere with other LED indications (notably charging/critical blink behavior), and ensures the dedicated heartbeat LED is explicitly turned off when heartbeat is disabled or suppressed.

Changes:

  • Stop using CHARGE_LED_state as the heartbeat driver when a dedicated LED_HEARTBEAT pin exists.
  • Gate heartbeat blinking on non-charging/non-charged state and on not being in the fast-blink (critical) mode.
  • Explicitly drive LED_HEARTBEAT low/off when heartbeat is disabled or otherwise not allowed to blink.

}
}

// If we want a LED to be dedicated to the simple hearbeat, we can use that instead of the charge LED
Comment on lines 100 to 107
@@ -117,6 +106,19 @@ int32_t StatusLEDModule::runOnce()
my_interval = 1;
}
@jp-bennett jp-bennett merged commit 5512185 into master May 8, 2026
84 checks passed
@jp-bennett jp-bennett deleted the smarter-heartbeat branch May 8, 2026 21:03
balya pushed a commit to balya/meshtastic-firmware that referenced this pull request May 14, 2026
Evil8it pushed a commit to Evil8it/ME4TACTNK that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes bugs needs-review Needs human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants