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:
parent
6fe2cb7738
commit
4199562534
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user