We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dae92c commit 5853368Copy full SHA for 5853368
main/ble/ble.c
@@ -604,11 +604,9 @@ static int ble_gap_event(struct ble_gap_event* event, void* arg)
604
JADE_ASSERT(rc == 0);
605
ble_print_conn_desc(&desc);
606
607
- // enable ble security if not already encrypted
608
- if (!desc.sec_state.encrypted) {
609
- rc = ble_gap_security_initiate(event->connect.conn_handle);
610
- JADE_ASSERT(rc == 0);
611
- }
+ // enable ble security
+ rc = ble_gap_security_initiate(event->connect.conn_handle);
+ JADE_ASSERT(rc == 0);
612
}
613
614
if (event->connect.status != 0) {
0 commit comments