mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
Fix ble client esp_gatt_if comparison (#1852)
This commit is contained in:
parent
f39c0d52ee
commit
7b11284008
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ void BLEClient::gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t es
|
||||||
esp_ble_gattc_cb_param_t *param) {
|
esp_ble_gattc_cb_param_t *param) {
|
||||||
if (event == ESP_GATTC_REG_EVT && this->app_id != param->reg.app_id)
|
if (event == ESP_GATTC_REG_EVT && this->app_id != param->reg.app_id)
|
||||||
return;
|
return;
|
||||||
if (event != ESP_GATTC_REG_EVT && esp_gattc_if != ESP_GATT_IF_NONE && gattc_if != this->gattc_if)
|
if (event != ESP_GATTC_REG_EVT && esp_gattc_if != ESP_GATT_IF_NONE && esp_gattc_if != this->gattc_if)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool all_established = this->all_nodes_established();
|
bool all_established = this->all_nodes_established();
|
||||||
|
|
Loading…
Reference in a new issue