mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
AndroidGCS: Make sure not to try and get interface to expired telemetry
This commit is contained in:
parent
90779506be
commit
5fa36ddd5c
@ -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) {
|
||||||
|
if (telemTask != null)
|
||||||
return telemTask.getTelemTaskIface();
|
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