mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-20 18:40:31 +00:00
pts: fix compile
This commit is contained in:
parent
683dbd933c
commit
9322a3ccd6
@ -1257,7 +1257,7 @@ static int ui_process_data_request(char buffer){
|
||||
switch (central_state){
|
||||
case CENTRAL_W4_WRITE_WITHOUT_RESPONSE:
|
||||
ui_announce_write("Write without response");
|
||||
gatt_client_write_value_of_characteristic_without_response(handle_gatt_client_event, handle, ui_attribute_handle, value_len, ui_value_data);
|
||||
gatt_client_write_value_of_characteristic_without_response(handle, ui_attribute_handle, value_len, ui_value_data);
|
||||
break;
|
||||
case CENTRAL_W4_WRITE_CHARACTERICISTIC_VALUE:
|
||||
ui_announce_write("Write Characteristic Value");
|
||||
|
@ -273,17 +273,17 @@ static void heartbeat_handler(struct btstack_timer_source *ts){
|
||||
|
||||
static void app_run(void){
|
||||
if (!update_client) return;
|
||||
if (!att_server_can_send_packet_now()) return;
|
||||
if (!att_server_can_send_packet_now(handle)) return;
|
||||
|
||||
int result = -1;
|
||||
switch (client_configuration){
|
||||
case 0x01:
|
||||
printf("Notify value %u\n", counter);
|
||||
result = att_server_notify(client_configuration_handle - 1, &counter, 1);
|
||||
result = att_server_notify(handle, client_configuration_handle - 1, &counter, 1);
|
||||
break;
|
||||
case 0x02:
|
||||
printf("Indicate value %u\n", counter);
|
||||
result = att_server_indicate(client_configuration_handle - 1, &counter, 1);
|
||||
result = att_server_indicate(handle, client_configuration_handle - 1, &counter, 1);
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
|
@ -49,7 +49,8 @@
|
||||
#include "hci_cmd.h"
|
||||
#include "hci.h"
|
||||
#include "btstack_debug.h"
|
||||
|
||||
#include "btstack_event.h"
|
||||
|
||||
static uint16_t sco_handle = 0;
|
||||
|
||||
static btstack_packet_callback_registration_t hci_event_callback_registration;
|
||||
|
Loading…
x
Reference in New Issue
Block a user