Skip to content

Commit 079db9c

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 27aa0eb commit 079db9c

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
@@ -122,6 +122,10 @@ Bluetooth LE samples
122122
* The allow list disabling button to only trigger on button press, and not on button release.
123123
* 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.
124124

125+
* :ref:`ble_nus_central_sample` sample:
126+
127+
* Updated to use button 1 to disconnect from target peripheral to align with other central samples.
128+
125129
NFC samples
126130
-----------
127131

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
@@ -450,7 +450,7 @@ static int buttons_leds_init(void)
450450

451451
static struct bm_buttons_config btn_configs[] = {
452452
{
453-
.pin_number = BOARD_PIN_BTN_3,
453+
.pin_number = BOARD_PIN_BTN_1,
454454
.active_state = BM_BUTTONS_ACTIVE_LOW,
455455
.pull_config = BM_BUTTONS_PIN_PULLUP,
456456
.handler = button_disconnect_handler,

0 commit comments

Comments
 (0)