Skip to content

Commit d4a0641

Browse files
committed
samples: ble_nus_central: use button 1 to disconnect from peripheral
Updated to use button 1 to disconnect from target peripheral to align with other central samples. Signed-off-by: Andreas Moltumyr <andreas.moltumyr@nordicsemi.no>
1 parent f3d628d commit d4a0641

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

doc/nrf-bm/release_notes/release_notes_changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ Bluetooth LE samples
147147
* The allow list disabling button to only trigger on button press, and not on button release.
148148
* An issue with the endianness of the target peripheral address when displaying the address on a :c:macro:`BLE_SCAN_EVT_CONNECTED` event and when supplying scan filter address with the :kconfig:option:`CONFIG_SAMPLE_TARGET_PERIPHERAL_ADDR` Kconfig option.
149149

150+
* :ref:`ble_nus_central_sample` sample:
151+
152+
* Updated to use button 1 to disconnect from target peripheral to align with other central samples.
153+
150154
NFC samples
151155
-----------
152156

samples/bluetooth/ble_nus_central/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ In addition, the sample enables peer TX notifications to receive data from the p
4444
User interface
4545
**************
4646

47-
Button 3:
47+
Button 1:
4848
Press to disconnect from the connected peer device.
4949

5050
LED 0:

samples/bluetooth/ble_nus_central/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ static int buttons_leds_init(void)
459459

460460
static struct bm_buttons_config btn_configs[] = {
461461
{
462-
.pin_number = BOARD_PIN_BTN_3,
462+
.pin_number = BOARD_PIN_BTN_1,
463463
.active_state = BM_BUTTONS_ACTIVE_LOW,
464464
.pull_config = BM_BUTTONS_PIN_PULLUP,
465465
.handler = button_handler_disconnect,

0 commit comments

Comments
 (0)