[Bluetooth] Fix the flag related with auto_connect
authorsangrae.kim <sangrae.kim@samsung.com>
Mon, 21 Sep 2015 01:04:54 +0000 (10:04 +0900)
committersangrae.kim <sangrae.kim@samsung.com>
Mon, 21 Sep 2015 01:05:34 +0000 (10:05 +0900)
Change-Id: I2e68b966a34181217665c5872c32f07869244956
Signed-off-by: sangrae.kim <sangrae.kim@samsung.com>
src/bluetooth/bluetooth_le_device.cc

index 5f389a5..dcb429b 100755 (executable)
@@ -320,7 +320,7 @@ void BluetoothLEDevice::Connect(const picojson::value& data,
       instance_.AsyncResponse(callback_handle,
                               PlatformResult(ErrorCode::NO_ERROR));
   } else {  // not connected yet
-    ret = bt_gatt_connect(address.c_str(), true);
+    ret = bt_gatt_connect(address.c_str(), false);
     if (BT_ERROR_NONE != ret) {
       instance_.AsyncResponse(
           callback_handle,