1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +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:
James Cotton 2012-08-27 09:53:23 -05:00
parent c2e55ecc21
commit e6ccfb9c61

View File

@ -258,7 +258,7 @@ public class OPTelemetryService extends Service {
mServiceHandler.sendMessage(msg);
}
public boolean isConnected() {
return activeTelem != null;
return (activeTelem != null) && (telemTask != null) && (telemTask.getConnected());
}
};