mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
hid_host_demo: allow for sniff mode, fixes #268
This commit is contained in:
parent
7e23d0c0b2
commit
6e82c1f85e
@ -145,6 +145,9 @@ static void hid_host_setup(void){
|
||||
hci_event_callback_registration.callback = &packet_handler;
|
||||
hci_add_event_handler(&hci_event_callback_registration);
|
||||
|
||||
// Allow sniff mode requests by HID device
|
||||
gap_set_default_link_policy_settings(LM_LINK_POLICY_ENABLE_SNIFF_MODE);
|
||||
|
||||
// Disable stdout buffering
|
||||
setbuf(stdout, NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user