Bluetooth: audio: has: Fix HAS features dynamic presets value
If there is no support for presets, Dynamic Presets feature flag should not be set. Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
parent
67db7d07f2
commit
8c86595289
1 changed files with 4 additions and 1 deletions
|
@ -1128,7 +1128,10 @@ static int has_init(const struct device *dev)
|
|||
|
||||
/* Initialize the supported features characteristic value */
|
||||
has.features = CONFIG_BT_HAS_HEARING_AID_TYPE & BT_HAS_FEAT_HEARING_AID_TYPE_MASK;
|
||||
has.features |= BT_HAS_FEAT_DYNAMIC_PRESETS;
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_HAS_PRESET_SUPPORT)) {
|
||||
has.features |= BT_HAS_FEAT_DYNAMIC_PRESETS;
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_HAS_HEARING_AID_BINAURAL)) {
|
||||
if (IS_ENABLED(CONFIG_BT_HAS_PRESET_SYNC_SUPPORT)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue