Skip to content

Commit 94d5d59

Browse files
Thalleykartben
authored andcommitted
Bluetooth: AICS: Fix check for BT_AICS_INPUT_TYPE
The check did not take the highest value into account. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 4bf653a commit 94d5d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/audio/aics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ int bt_aics_register(struct bt_aics *aics, struct bt_aics_register_param *param)
487487
return -EINVAL;
488488
}
489489

490-
CHECKIF(param->type > BT_AICS_INPUT_TYPE_STREAMING) {
490+
CHECKIF(param->type > BT_AICS_INPUT_TYPE_AMBIENT) {
491491
LOG_DBG("Invalid AICS input type value: %u", param->type);
492492
return -EINVAL;
493493
}

0 commit comments

Comments
 (0)