Changeset View
Changeset View
Standalone View
Standalone View
kstars/indi/indiccd.cpp
Show First 20 Lines • Show All 1548 Lines • ▼ Show 20 Line(s) | 1547 | { | |||
---|---|---|---|---|---|
1549 | return; | 1549 | return; | ||
1550 | } | 1550 | } | ||
1551 | 1551 | | |||
1552 | CCDChip *targetChip = nullptr; | 1552 | CCDChip *targetChip = nullptr; | ||
1553 | 1553 | | |||
1554 | if (!strcmp(bp->name, "CCD2")) | 1554 | if (!strcmp(bp->name, "CCD2")) | ||
1555 | targetChip = guideChip.get(); | 1555 | targetChip = guideChip.get(); | ||
1556 | else | 1556 | else | ||
1557 | { | ||||
1557 | targetChip = primaryChip.get(); | 1558 | targetChip = primaryChip.get(); | ||
1558 | 1559 | qCDebug(KSTARS_INDI) << "processBLOB() mode " << targetChip->getCaptureMode(); | |||
1559 | //qCDebug(KSTARS_INDI) << "processBLOB() mode " << targetChip->getCaptureMode(); | 1560 | } | ||
1560 | 1561 | | |||
1561 | // Create temporary name if ANY of the following conditions are met: | 1562 | // Create temporary name if ANY of the following conditions are met: | ||
1562 | // 1. file is preview or batch mode is not enabled | 1563 | // 1. file is preview or batch mode is not enabled | ||
1563 | // 2. file type is not FITS_NORMAL (focus, guide..etc) | 1564 | // 2. file type is not FITS_NORMAL (focus, guide..etc) | ||
1564 | QString filename; | 1565 | QString filename; | ||
1565 | if (targetChip->isBatchMode() == false || targetChip->getCaptureMode() != FITS_NORMAL) | 1566 | if (targetChip->isBatchMode() == false || targetChip->getCaptureMode() != FITS_NORMAL) | ||
1566 | { | 1567 | { | ||
1567 | if (!writeTempImageFile(format, static_cast<char *>(bp->blob), bp->size, &filename)) | 1568 | if (!writeTempImageFile(format, static_cast<char *>(bp->blob), bp->size, &filename)) | ||
▲ Show 20 Lines • Show All 990 Lines • Show Last 20 Lines |