Skip to content
Commit 19084817 authored by Abe Kohandel's avatar Abe Kohandel Committed by Anas Nashif
Browse files

bluetooth: ots: Enable testing with assert



Fix compilation and logic issues to allow testing OTS functionality with
assert enabled.

The compilation fixes are simple and do not require an explanation.

The assertion in bt_ots_dir_list_init was logically reversed. Its
purpose is to ensure the directory list is not already initialized
and as such should assert that the dir_list is not set (i.e. is NULL).

Signed-off-by: default avatarAbe Kohandel <abe.kohandel@gmail.com>
parent c3ca5ada
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment