From 99d2dda33ee41d0c5d79b01eae8341ae4f985a96 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Wed, 20 May 2009 21:26:20 +0000 Subject: [PATCH] provide simple makefile for arm-compilation --- src/main.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/main.c b/src/main.c index f91369ae8..ad467f0dd 100644 --- a/src/main.c +++ b/src/main.c @@ -23,13 +23,6 @@ static hci_uart_config_t config; hci_con_handle_t con_handle= 0; uint16_t dest_cid; -#if 0 -// reset done, send host buffer size -hci_send_cmd(&hci_host_buffer_size, 400, 255, 1, 0, 0); -// reset done, send inq -hci_send_cmd(&hci_inquiry, HCI_INQUIRY_LAP, 30, 0); -#endif - void event_handler(uint8_t *packet, int size){ bd_addr_t addr = {0x00, 0x03, 0xc9, 0x3d, 0x77, 0x43 }; // bd_addr_t addr = { 0x00, 0x16, 0xcb, 0x09, 0x94, 0xa9}; @@ -38,7 +31,9 @@ void event_handler(uint8_t *packet, int size){ // bt stack activated, set authentication enabled if (packet[0] == BTSTACK_EVENT_HCI_WORKING) { - hci_send_cmd(&hci_write_authentication_enable, 1); + // hci_send_cmd(&hci_write_authentication_enable, 1); + // hci_send_cmd(&hci_host_buffer_size, 400, 255, 1, 0, 0); + hci_send_cmd(&hci_inquiry, HCI_INQUIRY_LAP, 30, 0); } if ( COMMAND_COMPLETE_EVENT(packet, hci_write_authentication_enable) ) {