From 0e9f4109a6af5e41fd21b545fc0dd28e27cac08e Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Sun, 11 Oct 2009 21:19:28 +0000 Subject: [PATCH] report initial state as initializing --- CocoaTouch/src/BTstackCocoaAppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CocoaTouch/src/BTstackCocoaAppDelegate.m b/CocoaTouch/src/BTstackCocoaAppDelegate.m index 754123789..e7d77a59f 100644 --- a/CocoaTouch/src/BTstackCocoaAppDelegate.m +++ b/CocoaTouch/src/BTstackCocoaAppDelegate.m @@ -169,7 +169,6 @@ void packet_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){ // create BTInquiryView inqView = [[BTInquiryViewController alloc] init]; - [inqView setBluetoothState:HCI_STATE_OFF]; devices = [[NSMutableArray alloc] init]; [inqView setDevices:devices]; @@ -179,6 +178,7 @@ void packet_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){ [window makeKeyAndVisible]; // start Bluetooth + [inqView setBluetoothState:HCI_STATE_INITIALIZING]; run_loop_init(RUN_LOOP_COCOA); bt_open(); bt_register_packet_handler(packet_handler);