mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 11:22:24 +01:00
preen
This commit is contained in:
@@ -306,7 +306,7 @@ void ESP32BLE::loop() {
|
|||||||
case BLEEvent::GATTS: {
|
case BLEEvent::GATTS: {
|
||||||
esp_gatts_cb_event_t event = ble_event->event_.gatts.gatts_event;
|
esp_gatts_cb_event_t event = ble_event->event_.gatts.gatts_event;
|
||||||
esp_gatt_if_t gatts_if = ble_event->event_.gatts.gatts_if;
|
esp_gatt_if_t gatts_if = ble_event->event_.gatts.gatts_if;
|
||||||
esp_ble_gatts_cb_param_t *param = ble_event->event_.gatts.gatts_param;
|
esp_ble_gatts_cb_param_t *param = &ble_event->event_.gatts.gatts_param; // Take address of inline struct
|
||||||
ESP_LOGV(TAG, "gatts_event [esp_gatt_if: %d] - %d", gatts_if, event);
|
ESP_LOGV(TAG, "gatts_event [esp_gatt_if: %d] - %d", gatts_if, event);
|
||||||
for (auto *gatts_handler : this->gatts_event_handlers_) {
|
for (auto *gatts_handler : this->gatts_event_handlers_) {
|
||||||
gatts_handler->gatts_event_handler(event, gatts_if, param);
|
gatts_handler->gatts_event_handler(event, gatts_if, param);
|
||||||
@@ -316,7 +316,7 @@ void ESP32BLE::loop() {
|
|||||||
case BLEEvent::GATTC: {
|
case BLEEvent::GATTC: {
|
||||||
esp_gattc_cb_event_t event = ble_event->event_.gattc.gattc_event;
|
esp_gattc_cb_event_t event = ble_event->event_.gattc.gattc_event;
|
||||||
esp_gatt_if_t gattc_if = ble_event->event_.gattc.gattc_if;
|
esp_gatt_if_t gattc_if = ble_event->event_.gattc.gattc_if;
|
||||||
esp_ble_gattc_cb_param_t *param = ble_event->event_.gattc.gattc_param;
|
esp_ble_gattc_cb_param_t *param = &ble_event->event_.gattc.gattc_param; // Take address of inline struct
|
||||||
ESP_LOGV(TAG, "gattc_event [esp_gatt_if: %d] - %d", gattc_if, event);
|
ESP_LOGV(TAG, "gattc_event [esp_gatt_if: %d] - %d", gattc_if, event);
|
||||||
for (auto *gattc_handler : this->gattc_event_handlers_) {
|
for (auto *gattc_handler : this->gattc_event_handlers_) {
|
||||||
gattc_handler->gattc_event_handler(event, gattc_if, param);
|
gattc_handler->gattc_event_handler(event, gattc_if, param);
|
||||||
|
Reference in New Issue
Block a user