mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-17 07:19:42 +00:00
fix compile
This commit is contained in:
parent
c2839582af
commit
23dcb0cb5a
@ -45,6 +45,13 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef struct le_event {
|
||||||
|
uint8_t type;
|
||||||
|
uint16_t handle;
|
||||||
|
} le_event_t;
|
||||||
|
|
||||||
|
typedef void (*gatt_client_callback_t)(le_event_t * event);
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
P_READY,
|
P_READY,
|
||||||
P_W2_SEND_SERVICE_QUERY,
|
P_W2_SEND_SERVICE_QUERY,
|
||||||
@ -168,11 +175,6 @@ typedef struct gatt_subclient {
|
|||||||
|
|
||||||
/* API_START */
|
/* API_START */
|
||||||
|
|
||||||
typedef struct le_event {
|
|
||||||
uint8_t type;
|
|
||||||
uint16_t handle;
|
|
||||||
} le_event_t;
|
|
||||||
|
|
||||||
typedef struct gatt_complete_event{
|
typedef struct gatt_complete_event{
|
||||||
uint8_t type;
|
uint8_t type;
|
||||||
uint16_t handle;
|
uint16_t handle;
|
||||||
@ -232,8 +234,6 @@ typedef struct le_characteristic_descriptor_event{
|
|||||||
uint8_t * value;
|
uint8_t * value;
|
||||||
} le_characteristic_descriptor_event_t;
|
} le_characteristic_descriptor_event_t;
|
||||||
|
|
||||||
typedef void (*gatt_client_callback_t)(le_event_t * event);
|
|
||||||
|
|
||||||
// Set up GATT client.
|
// Set up GATT client.
|
||||||
void gatt_client_init();
|
void gatt_client_init();
|
||||||
|
|
||||||
|
@ -603,7 +603,7 @@ linked_list_gatt_client_helper_t * daemon_setup_gatt_client_request(connection_t
|
|||||||
|
|
||||||
if (track_active_connection){
|
if (track_active_connection){
|
||||||
// remember connection responsible for this request
|
// remember connection responsible for this request
|
||||||
gatt_helper->active_connection = connection;
|
helper->active_connection = connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
return helper;
|
return helper;
|
||||||
|
Loading…
Reference in New Issue
Block a user