summaryrefslogtreecommitdiff
path: root/ports/zephyr/modbluetooth_zephyr.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-01-12 16:10:52 +1100
committerDamien George <damien@micropython.org>2022-01-13 13:45:55 +1100
commita49b51b7dba25d1a87c33109cf908643c8fecb24 (patch)
treeeb489a67af1925f92513ace5c0a2530345434b2b /ports/zephyr/modbluetooth_zephyr.c
parente7fff736b56e250dbc03fb9796f93789f20a17d5 (diff)
zephyr/modbluetooth_zephyr: Provide dummy connect_cancel function.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/zephyr/modbluetooth_zephyr.c')
-rw-r--r--ports/zephyr/modbluetooth_zephyr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ports/zephyr/modbluetooth_zephyr.c b/ports/zephyr/modbluetooth_zephyr.c
index f4b6f3559..ba13064f3 100644
--- a/ports/zephyr/modbluetooth_zephyr.c
+++ b/ports/zephyr/modbluetooth_zephyr.c
@@ -408,6 +408,14 @@ int mp_bluetooth_gap_peripheral_connect(uint8_t addr_type, const uint8_t *addr,
return MP_EOPNOTSUPP;
}
+int mp_bluetooth_gap_peripheral_connect_cancel(void) {
+ DEBUG_printf("mp_bluetooth_gap_peripheral_connect_cancel\n");
+ if (!mp_bluetooth_is_active()) {
+ return ERRNO_BLUETOOTH_NOT_ACTIVE;
+ }
+ return MP_EOPNOTSUPP;
+}
+
#endif // MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE
#endif // MICROPY_PY_BLUETOOTH