Commit cb13f44
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 43f3c50 commit cb13f44
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 | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 55 | + | |
| 56 | + | |
61 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
541 | 542 | | |
542 | 543 | | |
543 | 544 | | |
544 | | - | |
| 545 | + | |
545 | 546 | | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| |||
0 commit comments