Skip to content

Commit

Permalink
Update ASI_functions.cpp: display Camera Number
Browse files Browse the repository at this point in the history
It was displayed as part of "settings", but it makes more sense to display as part of Camera Information.

Also:
* Remove redundant word "Camera".
* Display the camera model two ways.  If they are ALWAYS the same, then remove the "getCameraModel()" version.  Some ZWO cameras have "ZWO" in the model name, which getCameraModel() deletes.
  • Loading branch information
EricClaeys authored Nov 20, 2024
1 parent a196bfc commit 662b235
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ASI_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1902,11 +1902,13 @@ void outputCameraInfo(ASI_CAMERA_INFO cameraInfo, config cg,
{
printf(" Camera Information:\n");
printf(" - Type: %s\n", CAMERA_TYPE);
printf(" - Model: %s\n", getCameraModel(cameraInfo.Name));
printf(" - Model: %s (%s)\n", getCameraModel(cameraInfo.Name), cg.cm);
#ifdef IS_ZWO
printf(" - Camera ID: %s\n", cID);
printf(" - ID: %s\n", cID);
#endif
printf(" - Camera Serial Number: %s\n", getSerialNumber(cameraInfo.CameraID));
printf(" - Serial Number: %s\n", getSerialNumber(cameraInfo.CameraID));
if (cg.cameraNumber > 0)
printf(" Camera number: %d\n", cg.cameraNumber);
printf(" - Native Resolution: %ldx%ld\n", width, height);
printf(" - Pixel Size: %1.2f microns\n", pixelSize);
printf(" - Supported Bins: ");
Expand Down Expand Up @@ -2496,3 +2498,4 @@ bool validateSettings(config *cg, ASI_CAMERA_INFO ci)

return(ok);
}

0 comments on commit 662b235

Please sign in to comment.