mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 00:28:18 +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_add_event_handler(&hci_event_callback_registration);
|
||||
|
||||
// make discoverable to allow HID device to initiate connection
|
||||
gap_discoverable_control(1);
|
||||
|
||||
// Disable stdout buffering
|
||||
setvbuf(stdin, NULL, _IONBF, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user