stop blink timer in autoConnLed(false)

This commit is contained in:
hathach committed 2026-03-18 18:41:36 +07:00
1 parent a162b65032
commit ec0a415838
1 file changed
+4 -2
+4 -2
View File
@@ -561,9 +561,11 @@ int8_t AdafruitBluefruit::getTxPower(void)
return _tx_power; return _tx_power;
} }
void AdafruitBluefruit::autoConnLed(bool enabled) void AdafruitBluefruit::autoConnLed(bool enabled) {
{
_led_conn = enabled; _led_conn = enabled;
if (!enabled) {
xTimerStop(_led_blink_th, 0);
}
} }
void AdafruitBluefruit::setConnLedInterval(uint32_t ms) void AdafruitBluefruit::setConnLedInterval(uint32_t ms)