Bluetooth: host: Fix endianness issue in reading CPF descriptor
Fix endianness issue in reading CPF descriptor not converting from native endianess to little-endian on the 'unit' and 'description' fields. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
22218129a6
commit
84dffe5b3c
2 changed files with 19 additions and 4 deletions
|
@ -290,7 +290,7 @@ struct bt_gatt_cpf {
|
|||
uint8_t name_space;
|
||||
/** Description of the characteristic as defined in a higher layer profile */
|
||||
uint16_t description;
|
||||
} __packed;
|
||||
};
|
||||
|
||||
/**
|
||||
* @defgroup bt_gatt_server GATT Server APIs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue