Skip to content

Commit

Permalink
Only record WB_R and WB_B for color cameras
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Sep 1, 2024
1 parent 4e9cc45 commit e339497
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions indi-asi/asi_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ void ASIBase::workerExposure(const std::atomic_bool &isAboutToQuit, float durati
ret = ASIGetExpStatus(mCameraInfo.CameraID, &status);
usleep(1000);
i++;
}while(i<300 && status == ASI_EXP_WORKING);
}
while(i < 300 && status == ASI_EXP_WORKING);
}
else
{
Expand Down Expand Up @@ -1555,16 +1556,19 @@ void ASIBase::addFITSKeywords(INDI::CCDChip *targetChip, std::vector<INDI::FITSR
fitsKeywords.push_back({"OFFSET", np->value, 3, "Offset"});
}

np = ControlNP.findWidgetByName("WB_R");
if (np)
if (mCameraInfo.IsColorCam)
{
fitsKeywords.push_back({"WB_R", np->value, 3, "White Balance - Red"});
}
np = ControlNP.findWidgetByName("WB_R");
if (np)
{
fitsKeywords.push_back({"WB_R", np->value, 3, "White Balance - Red"});
}

np = ControlNP.findWidgetByName("WB_B");
if (np)
{
fitsKeywords.push_back({"WB_B", np->value, 3, "White Balance - Blue"});
np = ControlNP.findWidgetByName("WB_B");
if (np)
{
fitsKeywords.push_back({"WB_B", np->value, 3, "White Balance - Blue"});
}
}
}

Expand Down

0 comments on commit e339497

Please sign in to comment.