X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosdroid%2Fsrc%2Forg%2Faltusmetrum%2FAltosDroid%2FAltosBluetooth.java;h=18581142efc13679a24d1768af563e538a3e4ff2;hb=162c640d382b9f823573578fe97584adc94cd9b6;hp=bb188d80ca2a1d95186e9150a3ba3cabdbdf163f;hpb=6441437d3b0e848b225a3d6c78ab00e2590c6988;p=fw%2Faltos diff --git a/altosdroid/src/org/altusmetrum/AltosDroid/AltosBluetooth.java b/altosdroid/src/org/altusmetrum/AltosDroid/AltosBluetooth.java index bb188d80..18581142 100644 --- a/altosdroid/src/org/altusmetrum/AltosDroid/AltosBluetooth.java +++ b/altosdroid/src/org/altusmetrum/AltosDroid/AltosBluetooth.java @@ -1,6 +1,6 @@ /* - * Copyright © 2011 Keith Packard - * Copyright © 2012 Mike Beattie + * Copyright © 2011 Keith Packard + * Copyright © 2012 Mike Beattie * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -103,6 +103,7 @@ public class AltosBluetooth extends AltosLink { input = null; output = null; AltosBluetooth.this.notifyAll(); + handler.obtainMessage(TelemetryService.MSG_CONNECT_FAILED).sendToTarget(); if (D) Log.e(TAG, "ConnectThread: Failed to establish connection"); return; } @@ -147,6 +148,7 @@ public class AltosBluetooth extends AltosLink { private void connection_failed() { if (D) Log.e(TAG, "Bluetooth Socket IO failed!"); + handler.obtainMessage(TelemetryService.MSG_DISCONNECTED).sendToTarget(); } public void print(String data) {