mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +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 class LocalBinder extends Binder {
|
||||||
public TelemTask getTelemTask(int id) {
|
public TelemTask getTelemTask(int id) {
|
||||||
return telemTask.getTelemTaskIface();
|
if (telemTask != null)
|
||||||
|
return telemTask.getTelemTaskIface();
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
public void openConnection() {
|
public void openConnection() {
|
||||||
Toast.makeText(getApplicationContext(), "Requested open connection", Toast.LENGTH_SHORT).show();
|
Toast.makeText(getApplicationContext(), "Requested open connection", Toast.LENGTH_SHORT).show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user