Commit a0dc3ff
committed
samples: ble_hrs_central: fix peripheral address filter endianness
The address set with the CONFIG_SAMPLE_TARGET_PERIPHERAL_ADDR Kconfig
was incorrectly converted to big-endian before being passed to the
SoftDevice API (which uses little-endian for the address).
In turn, the address printed on a BLE_SCAN_EVT_CONNECTED event was
also incorrect (displayed inverted).
Fix both these issues so that the Kconfig and address print uses
big-endian (standard way to display an address), while the libraries
and SoftDevice use addresses in little-endian.
Signed-off-by: Andreas Moltumyr <andreas.moltumyr@nordicsemi.no>1 parent 29291e6 commit a0dc3ff
2 files changed
Lines changed: 12 additions & 11 deletions
File tree
- doc/nrf-bm/release_notes
- samples/bluetooth/ble_hrs_central/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 56 | + | |
| 57 | + | |
62 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
529 | 530 | | |
530 | 531 | | |
531 | 532 | | |
532 | | - | |
| 533 | + | |
533 | 534 | | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| |||
0 commit comments