mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
zephyr/modbluetooth_zephyr: Provide dummy connect_cancel function.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user