summaryrefslogtreecommitdiff
path: root/extmod/modbluetooth.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-01-12 16:08:40 +1100
committerDamien George <damien@micropython.org>2022-01-13 13:45:43 +1100
commite7fff736b56e250dbc03fb9796f93789f20a17d5 (patch)
tree2010ae8d9bf2637c0ee03b8253bf9e926b69cb2d /extmod/modbluetooth.h
parent889dee8076aa1c639dbbd6ce4993872e7feb4acf (diff)
extmod/modbluetooth: Put declaration of connect_cancel in correct place.
This fixes a bug introduced in 851ecb2da178fff0b60aefdb5af502f28787a7ec Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/modbluetooth.h')
-rw-r--r--extmod/modbluetooth.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/extmod/modbluetooth.h b/extmod/modbluetooth.h
index e52232c41..52053045f 100644
--- a/extmod/modbluetooth.h
+++ b/extmod/modbluetooth.h
@@ -371,12 +371,12 @@ int mp_bluetooth_gap_scan_stop(void);
// Connect to a found peripheral.
int mp_bluetooth_gap_peripheral_connect(uint8_t addr_type, const uint8_t *addr, int32_t duration_ms, int32_t min_conn_interval_us, int32_t max_conn_interval_us);
-#endif
-
-#if MICROPY_PY_BLUETOOTH_ENABLE_GATT_CLIENT
// Cancel in-progress connection to a peripheral.
int mp_bluetooth_gap_peripheral_connect_cancel(void);
+#endif
+
+#if MICROPY_PY_BLUETOOTH_ENABLE_GATT_CLIENT
// Find all primary services on the connected peripheral.
int mp_bluetooth_gattc_discover_primary_services(uint16_t conn_handle, const mp_obj_bluetooth_uuid_t *uuid);