check client handler before calling it att_server

This commit is contained in:
mila@ringwald.ch 2014-09-07 19:27:54 +00:00
parent dfc6ff89b3
commit 5b09aef38a

View File

@ -87,6 +87,9 @@ static timer_source_t att_handle_value_indication_timer;
static btstack_packet_handler_t att_client_packet_handler = NULL;
static void att_handle_value_indication_notify_client(uint8_t status, uint16_t client_handle, uint16_t attribute_handle){
if (!att_client_packet_handler) return;
uint8_t event[7];
int pos = 0;
event[pos++] = ATT_HANDLE_VALUE_INDICATION_COMPLETE;