mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-03 20:54:18 +00:00
report initial state as initializing
This commit is contained in:
parent
bc6baf4aa5
commit
0e9f4109a6
@ -169,7 +169,6 @@ void packet_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){
|
|||||||
|
|
||||||
// create BTInquiryView
|
// create BTInquiryView
|
||||||
inqView = [[BTInquiryViewController alloc] init];
|
inqView = [[BTInquiryViewController alloc] init];
|
||||||
[inqView setBluetoothState:HCI_STATE_OFF];
|
|
||||||
devices = [[NSMutableArray alloc] init];
|
devices = [[NSMutableArray alloc] init];
|
||||||
[inqView setDevices:devices];
|
[inqView setDevices:devices];
|
||||||
|
|
||||||
@ -179,6 +178,7 @@ void packet_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){
|
|||||||
[window makeKeyAndVisible];
|
[window makeKeyAndVisible];
|
||||||
|
|
||||||
// start Bluetooth
|
// start Bluetooth
|
||||||
|
[inqView setBluetoothState:HCI_STATE_INITIALIZING];
|
||||||
run_loop_init(RUN_LOOP_COCOA);
|
run_loop_init(RUN_LOOP_COCOA);
|
||||||
bt_open();
|
bt_open();
|
||||||
bt_register_packet_handler(packet_handler);
|
bt_register_packet_handler(packet_handler);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user