summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-07-19 20:54:29 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-07-19 20:54:29 (GMT)
commitfb5dc06a671ba6fb0ab66069bb5f0d953fe0037e (patch)
tree1ad9786538808fb278b68ac40d95272b590dd1cf
parenta62fdae0b9c9caed63ca161524d049397849debe (diff)
Update to use FocusState
-rw-r--r--kstars/ekos/capture.cpp6
-rw-r--r--kstars/ekos/capture.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/kstars/ekos/capture.cpp b/kstars/ekos/capture.cpp
index e665aea..0973465 100644
--- a/kstars/ekos/capture.cpp
+++ b/kstars/ekos/capture.cpp
@@ -1780,9 +1780,9 @@ void Capture::setAutoguiding(bool enable)
isAutoGuiding = enable;
}
-void Capture::updateFocusStatus(bool status)
+void Capture::updateFocusStatus(FocusState state)
{
- isFocusBusy = status;
+ isFocusBusy = state >= Ekos::FOCUS_PROGRESS;
}
void Capture::updateAutofocusStatus(bool status, double HFR)
@@ -2273,7 +2273,7 @@ bool Capture::saveSequenceQueue(const QString &path)
outstream << "<Type>" << frameTypeCombo->itemText(job->getFrameType()) << "</Type>" << endl;
outstream << "<Prefix>" << endl;
//outstream << "<CompletePrefix>" << job->getPrefix() << "</CompletePrefix>" << endl;
- outstream << "<RawPrefix>" << rawPrefix << "</RawPrefix>" << endl;
+ outstream << "<RawPrefix>" << rawPrefix << "</RawPrefix>" << endl;
outstream << "<FilterEnabled>" << (filterEnabled ? 1 : 0) << "</FilterEnabled>" << endl;
outstream << "<ExpEnabled>" << (expEnabled ? 1 : 0) << "</ExpEnabled>" << endl;
outstream << "<TimeStampEnabled>" << (tsEnabled ? 1 : 0) << "</TimeStampEnabled>" << endl;
diff --git a/kstars/ekos/capture.h b/kstars/ekos/capture.h
index 85d9739..44e2305 100644
--- a/kstars/ekos/capture.h
+++ b/kstars/ekos/capture.h
@@ -406,7 +406,7 @@ private slots:
void enableAlignmentFlag();
// Auto Focus
- void updateFocusStatus(bool status);
+ void updateFocusStatus(Ekos::FocusState state);
void updateAutofocusStatus(bool status, double HFR);
void startPostFilterAutoFocus();