Skip to content

Commit

Permalink
Update ASI_functions.cpp: Match on camera model if we know it
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Jun 5, 2024
1 parent 6214c5b commit edd0128
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/ASI_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,19 @@ if (numTokens > 1) Log(5, ", inCamera=%s, inControlCaps=%s, inLibcamera=%s\n", y
RPiCameras[thisIndex].ControlCaps = &ControlCapsArray[actualIndex][0];
Log(4, " ControlCapsArray[%d]", actualIndex);

if (thisIndex == CG.cameraNumber)
// Use camera model if we have it.
if (CG.cm[0] != '\0')
{
if (strcmp(RPiCameras[thisIndex].CameraInfo->Name, CG.cm) == 0)
{
RPiCameraIndex = thisIndex;
Log(4, " - MATCH on cm=%s\n", CG.cm);
}
else
{
Log(4, ".\n");
}
} else if (thisIndex == CG.cameraNumber)
{
RPiCameraIndex = thisIndex;
Log(4, " - MATCH\n");
Expand Down

0 comments on commit edd0128

Please sign in to comment.