Commit 4374989
bluetooth: hrs: change hrm_encode return type to uint16_t
hrm_encode() returned uint8_t, but both places that use it expect
a uint16_t (ble_gatts_attr_t.init_len and ble_gatts_hvx_params_t.p_len
from the SoftDevice API).
In practice the length never goes above 255, so this was not a real
bug, just an inconsistency that forced the compiler to silently widen
the value. Changing the return type (and the internal len variable)
to uint16_t makes everything line up.
No functional change.
Signed-off-by: Martynas Smilingis <martynas.smilingis@nordicsemi.no>1 parent aa1bb85 commit 4374989
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments