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

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

parent 2ed3f667
......@@ -109,9 +109,11 @@ void SequenceJob::prepareCapture()
SequenceJob::CAPTUREResult SequenceJob::capture(bool isDark)
{
//if (targetFilter != -1 && activeFilter != NULL)
//activeFilter->runCommand(INDI_SET_FILTER, &targetFilter);
if (targetFilter != -1 && activeFilter != NULL)
{
if (targetFilter != currentFilter)
activeFilter->runCommand(INDI_SET_FILTER, &targetFilter);
}
if (activeChip->canSubframe() && activeChip->setFrame(x, y, w, h) == false)
{
......@@ -842,6 +844,12 @@ void Capture::captureImage()
isDark = true;
if (filterSlot != NULL)
{
currentFilterPosition = (int) filterSlot->np[0].value;
activeJob->setCurrentFilter(currentFilterPosition);
}
rc = activeJob->capture(isDark);
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