mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-31 19:20:26 +00:00
mesh: fix MESH_SUBEVENT_PROXY_CONNECTED
Event does not have a status field
This commit is contained in:
parent
b24771d95e
commit
ec422a3a49
@ -2824,9 +2824,8 @@ typedef uint8_t sm_key_t[16];
|
|||||||
#define MESH_SUBEVENT_ATTENTION_TIMER 0x1e
|
#define MESH_SUBEVENT_ATTENTION_TIMER 0x1e
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @format 11H
|
* @format 1H
|
||||||
* @param subevent_code
|
* @param subevent_code
|
||||||
* @param status
|
|
||||||
* @param con_handle
|
* @param con_handle
|
||||||
*/
|
*/
|
||||||
#define MESH_SUBEVENT_PROXY_CONNECTED 0x20
|
#define MESH_SUBEVENT_PROXY_CONNECTED 0x20
|
||||||
|
@ -7655,15 +7655,6 @@ static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uin
|
|||||||
return event[3];
|
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
|
* @brief Get field con_handle from event MESH_SUBEVENT_PROXY_CONNECTED
|
||||||
* @param event packet
|
* @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
|
* @note: btstack_type H
|
||||||
*/
|
*/
|
||||||
static inline hci_con_handle_t mesh_subevent_proxy_connected_get_con_handle(const uint8_t * event){
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -38,7 +38,7 @@ CFLAGS += -g -DUNIT_TEST -Wall \
|
|||||||
-I$(BTSTACK_ROOT)/3rd-party/tinydir \
|
-I$(BTSTACK_ROOT)/3rd-party/tinydir \
|
||||||
-I$(BTSTACK_ROOT)/3rd-party/rijndael \
|
-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
|
CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wunused-parameter -Wredundant-decls -Wsign-compare -Wimplicit-fallthrough
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user