From 4fd3c48dc26fac3763bb6b0a81b3fd6954024b5e Mon Sep 17 00:00:00 2001 From: jhchun Date: Tue, 4 Aug 2026 16:46:39 +0900 Subject: [PATCH] =?UTF-8?q?BLE=20=EB=B3=B4=EC=95=88=20=EC=97=B0=EA=B2=B0?= =?UTF-8?q?=EA=B9=8C=EC=A7=80=20=EC=99=84=EB=A3=8C=20=ED=9B=84=20=EA=B4=91?= =?UTF-8?q?=EA=B3=A0=20LED=20=EB=81=84=EB=8F=84=EB=A1=9D=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ble/ble_service.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ble/ble_service.c b/src/ble/ble_service.c index e4ecd9f..05a6625 100644 --- a/src/ble/ble_service.c +++ b/src/ble/ble_service.c @@ -578,7 +578,6 @@ static void connected(struct bt_conn *conn, uint8_t err) DBG_CORE("[BLE] Security requested level=%u\r\n", BLE_REQUIRED_SECURITY_LEVEL); #endif - led_set_state(LED_STATE_OFF); DBG_CORE("[BLE] Connected\r\n"); } @@ -660,6 +659,10 @@ static void security_changed(struct bt_conn *conn, bt_security_t level, enum bt_ } DBG_CORE("[BLE] Security ready level=%u\r\n", level); + if (level >= BLE_REQUIRED_SECURITY_LEVEL) + { + led_set_state(LED_STATE_OFF); + } } #endif