hid_host_demo: allow for sniff mode, fixes #268

This commit is contained in:
Matthias Ringwald 2020-02-16 19:02:11 +01:00
parent 7e23d0c0b2
commit 6e82c1f85e

View File

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