Skip to content

Commit 9deba6b

Browse files
authored
Merge pull request #5147 from tannewt/tweak_tx_power
Increase tx power for BLE workflow pairing
2 parents d528386 + fdf49a4 commit 9deba6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supervisor/shared/bluetooth/bluetooth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
// This standard advertisement advertises the CircuitPython editing service and a CIRCUITPY short name.
5858
const uint8_t public_advertising_data[] = { 0x02, 0x01, 0x06, // 0-2 Flags
59-
0x02, 0x0a, 0xd8, // 3-5 TX power level -40
59+
0x02, 0x0a, 0xec, // 3-5 TX power level -20
6060
#if CIRCUITPY_BLE_FILE_SERVICE
6161
0x03, 0x02, 0xbb, 0xfe, // 6 - 9 Incomplete service list (File Transfer service)
6262
#endif
@@ -121,7 +121,7 @@ STATIC void supervisor_bluetooth_start_advertising(void) {
121121
// Advertise with less power when doing so publicly to reduce who can hear us. This will make it
122122
// harder for someone with bad intentions to pair from a distance.
123123
if (!bonded) {
124-
tx_power = -40;
124+
tx_power = -20;
125125
adv = public_advertising_data;
126126
adv_len = sizeof(public_advertising_data);
127127
scan_response = circuitpython_scan_response_data;

0 commit comments

Comments
 (0)