mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-02 19:29:15 +01:00
AndroidGCS: Make sure the telemetry sevice checks there is a telemetry task AND it's connected before sending the OPConnected service. Otherwise the objMngr is undefined.
This commit is contained in:
parent
6cd9a9b0af
commit
f01edc5d72
@ -259,7 +259,7 @@ public class OPTelemetryService extends Service {
|
|||||||
mServiceHandler.sendMessage(msg);
|
mServiceHandler.sendMessage(msg);
|
||||||
}
|
}
|
||||||
public boolean isConnected() {
|
public boolean isConnected() {
|
||||||
return activeTelem != null;
|
return (activeTelem != null) && (telemTask != null) && (telemTask.getConnected());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user