mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-07 09:55:45 +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_event_callback_registration.callback = &packet_handler;
|
||||||
hci_add_event_handler(&hci_event_callback_registration);
|
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
|
// Disable stdout buffering
|
||||||
setbuf(stdout, NULL);
|
setbuf(stdout, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user