diff --git a/src/btstack_defines.h b/src/btstack_defines.h index d73551a27..3412c72a7 100644 --- a/src/btstack_defines.h +++ b/src/btstack_defines.h @@ -2824,9 +2824,8 @@ typedef uint8_t sm_key_t[16]; #define MESH_SUBEVENT_ATTENTION_TIMER 0x1e /** - * @format 11H + * @format 1H * @param subevent_code - * @param status * @param con_handle */ #define MESH_SUBEVENT_PROXY_CONNECTED 0x20 diff --git a/src/btstack_event.h b/src/btstack_event.h index e0044c73f..dbc4f9f10 100644 --- a/src/btstack_event.h +++ b/src/btstack_event.h @@ -7655,15 +7655,6 @@ static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uin return event[3]; } -/** - * @brief Get field status from event MESH_SUBEVENT_PROXY_CONNECTED - * @param event packet - * @return status - * @note: btstack_type 1 - */ -static inline uint8_t mesh_subevent_proxy_connected_get_status(const uint8_t * event){ - return event[3]; -} /** * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_CONNECTED * @param event packet @@ -7671,7 +7662,7 @@ static inline uint8_t mesh_subevent_proxy_connected_get_status(const uint8_t * e * @note: btstack_type H */ static inline hci_con_handle_t mesh_subevent_proxy_connected_get_con_handle(const uint8_t * event){ - return little_endian_read_16(event, 4); + return little_endian_read_16(event, 3); } /** diff --git a/test/mesh/Makefile b/test/mesh/Makefile index 2d62f4917..4601e63ad 100644 --- a/test/mesh/Makefile +++ b/test/mesh/Makefile @@ -38,7 +38,7 @@ CFLAGS += -g -DUNIT_TEST -Wall \ -I$(BTSTACK_ROOT)/3rd-party/tinydir \ -I$(BTSTACK_ROOT)/3rd-party/rijndael \ -CFLAGS += -fprofile-arcs -ftest-coverage +CFLAGS += -fprofile-arcs -ftest-coverage -fsanitize=address,undefined CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wunused-parameter -Wredundant-decls -Wsign-compare -Wimplicit-fallthrough