summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-06 13:53:16 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-06 13:53:16 (GMT)
commit0dc1825f432e4ec5f28c37711560b37326f4f9b2 (patch)
tree94c9c73a47788221ab005b6cbf84c719c3a8c5f9
parent3eb9dc75ab70097efd00fc71b0202df1f6112842 (diff)
Check if ccd and telescope have been established
-rw-r--r--kstars/ekos/guide.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/kstars/ekos/guide.cpp b/kstars/ekos/guide.cpp
index 9bfb64d..97d64f1 100644
--- a/kstars/ekos/guide.cpp
+++ b/kstars/ekos/guide.cpp
@@ -279,6 +279,9 @@ void Guide::syncCCDInfo()
void Guide::syncTelescopeInfo()
{
+ if (currentTelescope == NULL)
+ return;
+
INumberVectorProperty * nvp = currentTelescope->getBaseDevice()->getNumber("TELESCOPE_INFO");
if (nvp)
@@ -311,6 +314,9 @@ void Guide::syncTelescopeInfo()
void Guide::updateGuideParams()
{
+ if (currentCCD == NULL)
+ return;
+
if (currentCCD->hasGuideHead() == false)
useGuideHead = false;