example/ancs_demo: register for both hci and sm events

This commit is contained in:
Matthias Ringwald 2016-04-08 21:38:24 +02:00
parent 89860bac6e
commit 77a5a3586d

View File

@ -147,7 +147,7 @@ int btstack_main(int argc, const char * argv[]){
// register for SM events
sm_event_callback_registration.callback = &app_packet_handler;
hci_add_event_handler(&sm_event_callback_registration);
sm_add_event_handler(&sm_event_callback_registration);
// setup ATT server
att_server_init(profile_data, NULL, NULL);