Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ha ThachandCopilot Autofix powered by AI authored and GitHub committed 2026-03-18 18:51:18 +07:00
1 parent ec0a415838
commit 0e6562df6e
1 file changed
+4 -1
+4 -1
View File
@@ -563,13 +563,16 @@ int8_t AdafruitBluefruit::getTxPower(void)
void AdafruitBluefruit::autoConnLed(bool enabled) {
_led_conn = enabled;
if (!enabled) {
if (!enabled && _led_blink_th != NULL) {
xTimerStop(_led_blink_th, 0);
}
}
void AdafruitBluefruit::setConnLedInterval(uint32_t ms)
{
// Timer is created in begin(); if called earlier, just ignore.
if (_led_blink_th == NULL) return;
BaseType_t active = xTimerIsTimerActive(_led_blink_th);
xTimerChangePeriod(_led_blink_th, ms2tick(ms), 0);