Skip to content

Commit 6783a42

Browse files
Update Adapter.c
minimum power
1 parent 363be5f commit 6783a42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/nordic/common-hal/_bleio/Adapter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ static bool advertising_on_ble_evt(ble_evt_t *ble_evt, void *self_in) {
715715
switch (ble_evt->header.evt_id) {
716716
case BLE_GAP_EVT_CONNECTED: // Connecting also stops an advertisement.
717717
// Set the tx_power for the connection higher than the advertisement.
718-
sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_CONN, ble_evt->evt.gap_evt.conn_handle, 0);
718+
sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_CONN, ble_evt->evt.gap_evt.conn_handle, -20);
719719
common_hal_bleio_adapter_stop_advertising(self);
720720
return false;
721721
break;

0 commit comments

Comments
 (0)