Skip to content

Commit

Permalink
Bugfix: capture hanging when no FITSViewer is used
Browse files Browse the repository at this point in the history
Meanwhile malfunctioning filter when receiving captured frames removed. This filter leads to hanging capture in the case that the FITS viewer is disabled.
  • Loading branch information
sterne-jaeger committed May 10, 2024
1 parent 3c60e14 commit aff30fb
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions kstars/indi/indicamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,26 +659,6 @@ bool Camera::processBLOB(INDI::Property prop)
m_LastNotificationTS = QDateTime::currentDateTime();
}


// Load FITS if either:
// #1 FITS Viewer is set to enabled.
// #2 This is a preview, so we MUST open FITS Viewer even if disabled.
// if (BType == BLOB_FITS)
// {
// Don't display image if the following conditions are met:
// 1. Mode is NORMAL or CALIBRATE; and
// 2. FITS Viewer is disabled; and
// 3. Batch mode is enabled.
// 4. Summary view is false.
if (targetChip->getCaptureMode() == FITS_NORMAL &&
Options::useFITSViewer() == false &&
Options::useSummaryPreview() == false &&
targetChip->isBatchMode())
{
emit propertyUpdated(prop);
return true;
}

QByteArray buffer = QByteArray::fromRawData(reinterpret_cast<char *>(bp->getBlob()), bp->getSize());
QSharedPointer<FITSData> imageData;
imageData.reset(new FITSData(targetChip->getCaptureMode()), &QObject::deleteLater);
Expand Down

0 comments on commit aff30fb

Please sign in to comment.