1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

AndroidGCS: Make sure not to try and get interface to expired telemetry

This commit is contained in:
James Cotton 2012-08-12 00:29:13 -05:00
parent 6fe2cb7738
commit 4199562534

View File

@ -248,7 +248,9 @@ public class OPTelemetryService extends Service {
public class LocalBinder extends Binder {
public TelemTask getTelemTask(int id) {
return telemTask.getTelemTaskIface();
if (telemTask != null)
return telemTask.getTelemTaskIface();
return null;
}
public void openConnection() {
Toast.makeText(getApplicationContext(), "Requested open connection", Toast.LENGTH_SHORT).show();