altosdroid: AltosBluetooth.java
authorMike Beattie <mike@ethernal.org>
Sun, 26 Aug 2012 03:11:12 +0000 (15:11 +1200)
committerMike Beattie <mike@ethernal.org>
Sun, 26 Aug 2012 03:11:12 +0000 (15:11 +1200)
* clean up variables/comments

Signed-off-by: Mike Beattie <mike@ethernal.org>
altosdroid/src/org/altusmetrum/AltosDroid/AltosBluetooth.java

index 1f0946799d71549c35e19ffb2a78b24752d385a6..4c1f09a285587a0f78b7168b9a6318705c1bdd1d 100644 (file)
@@ -36,17 +36,13 @@ public class AltosBluetooth extends AltosLink {
        private static final String TAG = "AltosBluetooth";
        private static final boolean D = true;
 
-       /**
-        * This thread runs while attempting to make an outgoing connection
-        * with a device. It runs straight through; the connection either
-        * succeeds or fails.
-        */
-
-       private BluetoothAdapter        adapter;
-       private ConnectThread           connect_thread;
-       private BluetoothSocket         socket;
-       private InputStream             input;
-       private OutputStream            output;
+       private ConnectThread    connect_thread = null;
+
+       private BluetoothAdapter adapter;
+       private BluetoothDevice  device;
+       private BluetoothSocket  socket;
+       private InputStream      input;
+       private OutputStream     output;
 
        private class ConnectThread extends Thread {
                private final UUID SPP_UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");