Skip to content

Commit a49b51b

Browse files
committed
zephyr/modbluetooth_zephyr: Provide dummy connect_cancel function.
Signed-off-by: Damien George <damien@micropython.org>
1 parent e7fff73 commit a49b51b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ports/zephyr/modbluetooth_zephyr.c

+8
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,14 @@ int mp_bluetooth_gap_peripheral_connect(uint8_t addr_type, const uint8_t *addr,
408408
return MP_EOPNOTSUPP;
409409
}
410410

411+
int mp_bluetooth_gap_peripheral_connect_cancel(void) {
412+
DEBUG_printf("mp_bluetooth_gap_peripheral_connect_cancel\n");
413+
if (!mp_bluetooth_is_active()) {
414+
return ERRNO_BLUETOOTH_NOT_ACTIVE;
415+
}
416+
return MP_EOPNOTSUPP;
417+
}
418+
411419
#endif // MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE
412420

413421
#endif // MICROPY_PY_BLUETOOTH

0 commit comments

Comments
 (0)