mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-24 15:02:43 +00:00
example/hid_host_demo: make discoverable
This commit is contained in:
parent
cff4c2d72d
commit
9cf717e80d
@ -160,6 +160,9 @@ static void hid_host_setup(void){
|
|||||||
hci_event_callback_registration.callback = &packet_handler;
|
hci_event_callback_registration.callback = &packet_handler;
|
||||||
hci_add_event_handler(&hci_event_callback_registration);
|
hci_add_event_handler(&hci_event_callback_registration);
|
||||||
|
|
||||||
|
// make discoverable to allow HID device to initiate connection
|
||||||
|
gap_discoverable_control(1);
|
||||||
|
|
||||||
// Disable stdout buffering
|
// Disable stdout buffering
|
||||||
setvbuf(stdin, NULL, _IONBF, 0);
|
setvbuf(stdin, NULL, _IONBF, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user