mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
fix regression in c13e0a89 caused by timer structs in btstack_main
This commit is contained in:
parent
c13e0a893e
commit
c9bc88e650
@ -77,6 +77,7 @@ static uint8_t spp_service_buffer[150];
|
||||
static int le_notification_enabled;
|
||||
|
||||
// THE Couner
|
||||
static timer_source_t heartbeat;
|
||||
static int counter = 0;
|
||||
static char counter_string[30];
|
||||
static int counter_string_len;
|
||||
@ -291,7 +292,6 @@ int btstack_main(void)
|
||||
att_server_init(profile_data, att_read_callback, att_write_callback);
|
||||
att_dump_attributes();
|
||||
// set one-shot timer
|
||||
timer_source_t heartbeat;
|
||||
heartbeat.process = &heartbeat_handler;
|
||||
run_loop_set_timer(&heartbeat, HEARTBEAT_PERIOD_MS);
|
||||
run_loop_add_timer(&heartbeat);
|
||||
|
@ -67,7 +67,7 @@
|
||||
|
||||
static uint16_t rfcomm_channel_id;
|
||||
static uint8_t spp_service_buffer[150];
|
||||
|
||||
static timer_source_t heartbeat;
|
||||
|
||||
static void packet_handler (void * connection, uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
||||
bd_addr_t event_addr;
|
||||
@ -200,7 +200,6 @@ int btstack_main(int argc, const char * argv[]){
|
||||
hci_ssp_set_io_capability(SSP_IO_CAPABILITY_DISPLAY_YES_NO);
|
||||
|
||||
// set one-shot timer
|
||||
timer_source_t heartbeat;
|
||||
heartbeat.process = &heartbeat_handler;
|
||||
run_loop_set_timer(&heartbeat, HEARTBEAT_PERIOD_MS);
|
||||
run_loop_add_timer(&heartbeat);
|
||||
|
@ -65,6 +65,7 @@ static uint8_t rfcomm_channel_nr = 1;
|
||||
static uint16_t rfcomm_channel_id;
|
||||
static uint8_t rfcomm_send_credit = 0;
|
||||
static uint8_t spp_service_buffer[150];
|
||||
static timer_source_t heartbeat;
|
||||
|
||||
// Bluetooth logic
|
||||
static void packet_handler (void * connection, uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
||||
@ -178,7 +179,6 @@ int btstack_main(int argc, const char * argv[]){
|
||||
sdp_register_service_internal(NULL, service_record_item);
|
||||
|
||||
// set one-shot timer
|
||||
timer_source_t heartbeat;
|
||||
heartbeat.process = &heartbeat_handler;
|
||||
run_loop_set_timer(&heartbeat, HEARTBEAT_PERIOD_MS);
|
||||
run_loop_add_timer(&heartbeat);
|
||||
|
Loading…
x
Reference in New Issue
Block a user