reset eis char notify enable status
This commit is contained in:
+12
-2
@@ -51,7 +51,12 @@ typedef struct
|
||||
} ble_eis_init_t;
|
||||
|
||||
static ble_eis_t ble_eis = {
|
||||
.conn_handle = BLE_CONN_HANDLE_INVALID,
|
||||
.conn_handle = BLE_CONN_HANDLE_INVALID,
|
||||
.regular_data_notify_enable = false,
|
||||
.low_freq_data_notify_enable = false,
|
||||
.auxiliary_data_notify_enable = false,
|
||||
.status_notify_enable = false,
|
||||
.event_notify_enable = false,
|
||||
};
|
||||
|
||||
static void on_connect(ble_eis_t *p_eis, ble_evt_t const *p_ble_evt)
|
||||
@@ -61,7 +66,12 @@ static void on_connect(ble_eis_t *p_eis, ble_evt_t const *p_ble_evt)
|
||||
|
||||
static void on_disconnect(ble_eis_t *p_eis, ble_evt_t const *p_ble_evt)
|
||||
{
|
||||
p_eis->conn_handle = BLE_CONN_HANDLE_INVALID;
|
||||
p_eis->conn_handle = BLE_CONN_HANDLE_INVALID;
|
||||
p_eis->regular_data_notify_enable = false;
|
||||
p_eis->low_freq_data_notify_enable = false;
|
||||
p_eis->auxiliary_data_notify_enable = false;
|
||||
p_eis->status_notify_enable = false;
|
||||
p_eis->event_notify_enable = false;
|
||||
}
|
||||
|
||||
static void eis_ccc_update(ble_eis_t *p_eis, ble_evt_t const *p_ble_evt)
|
||||
|
||||
Reference in New Issue
Block a user