altosdroid: Add TBT initialisation to AltosBluetooth
authorMike Beattie <mike@ethernal.org>
Sun, 26 Aug 2012 03:22:23 +0000 (15:22 +1200)
committerMike Beattie <mike@ethernal.org>
Sun, 26 Aug 2012 03:22:23 +0000 (15:22 +1200)
Signed-off-by: Mike Beattie <mike@ethernal.org>
altosdroid/src/org/altusmetrum/AltosDroid/AltosBluetooth.java

index db63b342cbb8803e8adcd3181041f219c0f7fd88..6b86a1537f68844b694f9f184c5b3c2a510478fa 100644 (file)
@@ -99,6 +99,10 @@ public class AltosBluetooth extends AltosLink {
                                        input = socket.getInputStream();
                                        output = socket.getOutputStream();
 
+                                       // Configure the newly connected device for telemetry
+                                       print("~\nE 0\n");
+                                       set_monitor(false);
+
                                        // Reset the ConnectThread because we're done
                                        AltosBluetooth.this.notify();
                                        connect_thread = null;