extmod/nimble/modbluetooth_nimble: Fix build when l2cap unavailable.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
pull/6488/merge
Jim Mussared 2020-11-24 07:56:34 +11:00 zatwierdzone przez Damien George
rodzic 23fad2526d
commit 5a7027915c
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -42,9 +42,11 @@
#include "services/gap/ble_svc_gap.h"
#include "services/gatt/ble_svc_gatt.h"
#if MICROPY_PY_BLUETOOTH_ENABLE_L2CAP_CHANNELS
// We need the definition of "struct ble_l2cap_chan".
// See l2cap_channel_event() for details.
#include "nimble/host/src/ble_l2cap_priv.h"
#endif
#ifndef MICROPY_PY_BLUETOOTH_DEFAULT_GAP_NAME
#define MICROPY_PY_BLUETOOTH_DEFAULT_GAP_NAME "MPY NIMBLE"