summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-14 00:32:07 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-14 00:32:07 (GMT)
commit7ae00e2ebc1637bfd75e496c7b5ba0007d710a7b (patch)
treea476b17b1fc07fa1b36c93bbd0a54b6dcec81b50
parent3642c4b76efb7620da8b86419092a50c5f1c589f (diff)
Do not process a NULL BLOB
-rw-r--r--kstars/ekos/focus.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/kstars/ekos/focus.cpp b/kstars/ekos/focus.cpp
index 2fa20d8..eea5f29 100644
--- a/kstars/ekos/focus.cpp
+++ b/kstars/ekos/focus.cpp
@@ -938,7 +938,11 @@ void Focus::FocusOut(int ms)
void Focus::newFITS(IBLOB *bp)
{
- INDI_UNUSED(bp);
+ if (bp == NULL)
+ {
+ capture();
+ return;
+ }
// Ignore guide head if there is any.
if (!strcmp(bp->name, "CCD2"))