Commit 78269f21 authored by schneider's avatar schneider
Browse files

fix(mp): Enable gatt client functionality again

parent b0e3d24c
Pipeline #5289 passed with stages
in 51 seconds
......@@ -99,7 +99,7 @@ static void handle_att_event(struct epic_att_event *att_event)
e->notification_status = NOTIFICATION_STATUS_OVERFLOW;
}
}
#if MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE
if (att_event->hdr.event == ATTC_READ_BY_GROUP_TYPE_RSP) {
// TODO: can we get the connection id from the event?
......@@ -347,7 +347,6 @@ static void handle_att_event(struct epic_att_event *att_event)
}
}
}
#endif
}
static void handle_dm_event(struct epic_dm_event *dm_event)
......@@ -797,7 +796,6 @@ int mp_bluetooth_set_preferred_mtu(uint16_t mtu)
return 0;
}
#if MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE
// Start a discovery (scan). Set duration to zero to run continuously.
int mp_bluetooth_gap_scan_start(
int32_t duration_ms,
......@@ -923,4 +921,3 @@ int mp_bluetooth_gattc_exchange_mtu(uint16_t conn_handle)
raise();
return 0;
}
#endif
......@@ -56,6 +56,7 @@ int mp_hal_csprng_read_int(void);
#define MICROPY_PY_BLUETOOTH (1)
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
#define MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE (1)
#define MICROPY_PY_BLUETOOTH_ENABLE_GATT_CLIENT (1)
#define MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS (1)
/* Modules */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment