Bluetooth: Audio: Change lang to 3-byte value from uint32_t
The 3-byte value suits the assigned number much better, and also allows for less memory copies when getting and setting the values. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
f08bc644a1
commit
be307f8ad9
8 changed files with 96 additions and 65 deletions
|
@ -66,7 +66,7 @@ static inline bool valid_metadata_type(uint8_t type, uint8_t len)
|
|||
|
||||
return true;
|
||||
case BT_AUDIO_METADATA_TYPE_LANG:
|
||||
if (len != 3) {
|
||||
if (len != BT_AUDIO_LANG_SIZE) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue