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: Abe Kohandel <abe.kohandel@gmail.com>
12 lines
254 B
Plaintext
12 lines
254 B
Plaintext
CONFIG_BT=y
|
|
CONFIG_BT_PERIPHERAL=y
|
|
CONFIG_BT_DEVICE_NAME="Zephyr OTS"
|
|
CONFIG_BT_OTS=y
|
|
CONFIG_BT_OTS_DIR_LIST_OBJ=y
|
|
CONFIG_BT_OTS_OBJ_NAME_WRITE_SUPPORT=y
|
|
CONFIG_BT_OTS_OACP_WRITE_SUPPORT=y
|
|
CONFIG_BT_OTS_OACP_PATCH_SUPPORT=y
|
|
|
|
CONFIG_LOG=y
|
|
CONFIG_ASSERT=y
|