]> granicus.if.org Git - esp-idf/commitdiff
component/bt: fix not send indication confirm in case of server only
authorisland <island@espressif.com>
Tue, 14 Nov 2017 03:43:57 +0000 (11:43 +0800)
committerisland <island@espressif.com>
Tue, 14 Nov 2017 03:43:57 +0000 (11:43 +0800)
components/bt/bluedroid/stack/gatt/gatt_utils.c
components/bt/bluedroid/stack/gatt/include/gatt_int.h

index 37e213227b7f303823e732c04f345f211377820b..9d2ae16f7c0f441e15cd162cb812321b1a6b6a36 100644 (file)
@@ -1255,7 +1255,7 @@ void gatt_start_ind_ack_timer(tGATT_TCB *p_tcb)
     p_tcb->ind_ack_timer_ent.param  = (TIMER_PARAM_TYPE)p_tcb;
     /* start notification cache timer */
     btu_start_timer (&p_tcb->ind_ack_timer_ent, BTU_TTYPE_ATT_WAIT_FOR_IND_ACK,
-                     GATT_WAIT_FOR_RSP_TOUT);
+                     GATT_WAIT_FOR_IND_ACK_TOUT);
 
 }
 /*******************************************************************************
index 9d836597a21d2341bba68d05d0ab222ab27ef02d..1f9be309246adde9f12be7b65437c11d522f7e66 100644 (file)
@@ -80,6 +80,7 @@ typedef UINT8 tGATT_SEC_ACTION;
 #define GATT_WAIT_FOR_RSP_TOUT       30
 #define GATT_WAIT_FOR_DISC_RSP_TOUT  5
 #define GATT_REQ_RETRY_LIMIT         2
+#define GATT_WAIT_FOR_IND_ACK_TOUT   5
 
 /* characteristic descriptor type */
 #define GATT_DESCR_EXT_DSCPTOR   1    /* Characteristic Extended Properties */