mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-21 22:20:57 +00:00
don't send again after indication timeout
This commit is contained in:
parent
fe689f8a07
commit
e6606e1fc1
@ -102,7 +102,6 @@ static void att_handle_value_indication_notify_client(uint8_t status, uint16_t c
|
|||||||
|
|
||||||
static void att_handle_value_indication_timeout(timer_source_t *ts){
|
static void att_handle_value_indication_timeout(timer_source_t *ts){
|
||||||
uint16_t att_handle = att_handle_value_indication_handle;
|
uint16_t att_handle = att_handle_value_indication_handle;
|
||||||
att_handle_value_indication_handle = 0;
|
|
||||||
att_handle_value_indication_notify_client(ATT_HANDLE_VALUE_INDICATION_TIMEOUT, att_request_handle, att_handle);
|
att_handle_value_indication_notify_client(ATT_HANDLE_VALUE_INDICATION_TIMEOUT, att_request_handle, att_handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,6 +147,7 @@ static void att_event_packet_handler (uint8_t packet_type, uint16_t channel, uin
|
|||||||
// -> avoid sending advertise enable a second time before command complete was received
|
// -> avoid sending advertise enable a second time before command complete was received
|
||||||
att_server_state = ATT_SERVER_IDLE;
|
att_server_state = ATT_SERVER_IDLE;
|
||||||
att_request_handle = 0;
|
att_request_handle = 0;
|
||||||
|
att_handle_value_indication_handle = 0; // reset error state
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SM_IDENTITY_RESOLVING_STARTED:
|
case SM_IDENTITY_RESOLVING_STARTED:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user