From cb406a47020b6e9b7da47027849462b83ad069d0 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 16 Sep 2014 11:44:29 +0200 Subject: [PATCH] android/gatt: Move bt_le_discovery_stop_cb up in the file This is to avoid forward declaration. --- android/gatt.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/android/gatt.c b/android/gatt.c index 5a1d21506..75ec5543a 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -216,8 +216,6 @@ static const uint8_t TEST_UUID[] = { 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04 }; -static void bt_le_discovery_stop_cb(void); - static bool is_bluetooth_uuid(const uint8_t *uuid) { int i; @@ -1585,6 +1583,15 @@ static int connect_next_dev(void) return connect_le(dev); } +static void bt_le_discovery_stop_cb(void) +{ + DBG(""); + + /* Check now if there is any device ready to connect */ + if (connect_next_dev() < 0) + bt_le_discovery_start(); +} + static void le_device_found_handler(const bdaddr_t *addr, uint8_t addr_type, int rssi, uint16_t eir_len, const void *eir, @@ -1760,15 +1767,6 @@ reply: status); } -static void bt_le_discovery_stop_cb(void) -{ - DBG(""); - - /* Check now if there is any device ready to connect */ - if (connect_next_dev() < 0) - bt_le_discovery_start(); -} - static void trigger_disconnection(struct app_connection *connection) { /* Notify client */ -- 2.47.3