mesh: fix MESH_SUBEVENT_PROXY_CONNECTED

Event does not have a status field
This commit is contained in:
Matthias Ringwald 2020-01-07 22:23:36 +01:00
parent b24771d95e
commit ec422a3a49
3 changed files with 3 additions and 13 deletions

View File

@ -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

View File

@ -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);
}
/**

View File

@ -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