File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
devices/ble_hci/common-hal/_bleio Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 (
You can’t perform that action at this time.
0 commit comments