Skip to content

Commit 615d1e9

Browse files
committed
Merge branch 'bugfix/ble_gap_event' into 'feature/esp_as_mcu_host'
bugfix/ble_gap_event Fix compilation for older ESP-IDF See merge request app-frameworks/esp_hosted!500
2 parents 9ba38db + 7da1c9b commit 615d1e9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/bleprph_host_only_vhci/main/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,11 @@ bleprph_gap_event(struct ble_gap_event *event, void *arg)
222222
int rc;
223223

224224
switch (event->type) {
225+
#if defined(BLE_GAP_EVENT_LINK_ESTAB)
225226
case BLE_GAP_EVENT_LINK_ESTAB:
227+
#else
228+
case BLE_GAP_EVENT_CONNECT:
229+
#endif
226230
/* A new connection was established or a connection attempt failed. */
227231
MODLOG_DFLT(INFO, "connection %s; status=%d ",
228232
event->connect.status == 0 ? "established" : "failed",

idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "0.0.13"
1+
version: "0.0.14"
22
description: ESP-Hosted provides driver such that any host can re-use ESP chipset as Wi-Fi or Bluetooth co-processor.
33
url: https://github.com/espressif/esp-hosted/tree/feature/esp_as_mcu_host
44
examples:

0 commit comments

Comments
 (0)