summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-09 20:46:32 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-09 20:46:32 (GMT)
commit390e58cc688c42e80c34f0cbb8eda393cfec5ceb (patch)
tree4475e4d61ba3b49e0379988ff27cfe64c853b1d7
parent9ad587c34f38bfb30f5d9626a1f8599e7d3c97db (diff)
If no star is selected while waiting, change state to IDLE
-rw-r--r--kstars/ekos/focus/focus.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/kstars/ekos/focus/focus.cpp b/kstars/ekos/focus/focus.cpp
index 3ae48af..cd644c0 100644
--- a/kstars/ekos/focus/focus.cpp
+++ b/kstars/ekos/focus/focus.cpp
@@ -2280,6 +2280,11 @@ void Focus::checkAutoStarTimeout()
abort();
setAutoFocusResult(false);
}
+ else if (state == FOCUS_WAITING)
+ {
+ state = FOCUS_IDLE;
+ emit newStatus(state);
+ }
}
void Focus::setAbsoluteFocusTicks()