Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVBONY CCD firmware and SDK version information logs added #810

Merged

Conversation

jctk
Copy link
Contributor

@jctk jctk commented Jul 2, 2023

Added code to SVBONYCCD::Connect() to output the version of SVBONY Camera's firmware and SDK as information log.
This information is used when users inquire about issues.

LOGF_INFO("Camera Firmware Version:%s", cameraFirmwareVersion);
}
else {
LOG_ERROR("Error, getting Camera Firmware Version failed.\n");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for \n

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I committed it with newline code removed form LOG_ERROR.

Comment on lines +113 to +115
char cameraFirmwareVersion[65];
// SVBONY Camera SDK version number
const char* SDKVersion;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're only using this to report version information once in Connect, is there a reason to keep it as class variable? or is this used elsewhere?

Copy link
Contributor Author

@jctk jctk Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If EKOS is used, this information is output to the log and need not be retained.
If non-EKOS clients use it without logging, I will retain this information for reference when debugging.
I also plan to display this information in the INDI control panel in the future, so we decided to keep it.

@knro knro merged commit 14ac7a6 into indilib:master Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants