Commit 4a5532ea authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Always verify filter is set to target filter after each subsequent capture

parent 2ed3f667
...@@ -109,9 +109,11 @@ void SequenceJob::prepareCapture() ...@@ -109,9 +109,11 @@ void SequenceJob::prepareCapture()
SequenceJob::CAPTUREResult SequenceJob::capture(bool isDark) SequenceJob::CAPTUREResult SequenceJob::capture(bool isDark)
{ {
if (targetFilter != -1 && activeFilter != NULL)
//if (targetFilter != -1 && activeFilter != NULL) {
//activeFilter->runCommand(INDI_SET_FILTER, &targetFilter); if (targetFilter != currentFilter)
activeFilter->runCommand(INDI_SET_FILTER, &targetFilter);
}
if (activeChip->canSubframe() && activeChip->setFrame(x, y, w, h) == false) if (activeChip->canSubframe() && activeChip->setFrame(x, y, w, h) == false)
{ {
...@@ -842,6 +844,12 @@ void Capture::captureImage() ...@@ -842,6 +844,12 @@ void Capture::captureImage()
isDark = true; isDark = true;
if (filterSlot != NULL)
{
currentFilterPosition = (int) filterSlot->np[0].value;
activeJob->setCurrentFilter(currentFilterPosition);
}
rc = activeJob->capture(isDark); rc = activeJob->capture(isDark);
switch (rc) switch (rc)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment