Skip to content

Commit d21f839

Browse files
Update Adapter.c- ble hci
1 parent 71173fa commit d21f839

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

devices/ble_hci/common-hal/_bleio/Adapter.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#define MAX_ADVERTISEMENT_SIZE (31)
4747

4848
// TODO make this settable from Python.
49-
#define DEFAULT_TX_POWER 0 // 0 dBm
49+
#define DEFAULT_TX_POWER -20 // -20 dBm
5050
#define MAX_ANONYMOUS_ADV_TIMEOUT_SECS (60 * 15)
5151
#define MAX_LIMITED_DISCOVERABLE_ADV_TIMEOUT_SECS (180)
5252

@@ -802,8 +802,8 @@ void common_hal_bleio_adapter_start_advertising(bleio_adapter_obj_t *self,
802802
}
803803
}
804804

805-
if (tx_power != 0) {
806-
mp_raise_NotImplementedError(MP_ERROR_TEXT("Only tx_power=0 supported"));
805+
if (tx_power != -20) {
806+
mp_raise_NotImplementedError(MP_ERROR_TEXT("Only tx_power=-20 supported"));
807807
}
808808

809809
const uint32_t result = _common_hal_bleio_adapter_start_advertising(

0 commit comments

Comments
 (0)