example/hid_host_demo: make discoverable

This commit is contained in:
Matthias Ringwald 2024-06-13 12:20:06 +02:00
parent cff4c2d72d
commit 9cf717e80d

View File

@ -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);
}