Signed-off-by: Mike Beattie <mike@ethernal.org>
- private void connection_failed() {
+ private void connection_lost() {
if (D) Log.e(TAG, "Connection lost during I/O");
handler.obtainMessage(TelemetryService.MSG_DISCONNECTED).sendToTarget();
}
if (D) Log.e(TAG, "Connection lost during I/O");
handler.obtainMessage(TelemetryService.MSG_DISCONNECTED).sendToTarget();
}
output.write(bytes);
if (D) Log.d(TAG, "print(): Wrote bytes: '" + data.replace('\n', '\\') + "'");
} catch (IOException e) {
output.write(bytes);
if (D) Log.d(TAG, "print(): Wrote bytes: '" + data.replace('\n', '\\') + "'");
} catch (IOException e) {
} catch (InterruptedException e) {
} catch (InterruptedException e) {
wait_connected();
return input.read();
} catch (IOException e) {
wait_connected();
return input.read();
} catch (IOException e) {
} catch (java.lang.InterruptedException e) {
} catch (java.lang.InterruptedException e) {
}
return AltosLink.ERROR;
}
}
return AltosLink.ERROR;
}