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

Add debug log for SVBONYBase::Connect() #1038

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion indi-svbony/svbony_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ bool SVBONYBase::updateProperties()

bool SVBONYBase::Connect()
{
LOGF_DEBUG("Attempting to open %s...", mCameraName.c_str());
LOGF_DEBUG("Attempting to open %s (CameraID=%d)...", mCameraName.c_str(), mCameraInfo.CameraID);

auto ret = SVBOpenCamera(mCameraInfo.CameraID);

Expand All @@ -537,26 +537,30 @@ bool SVBONYBase::Connect()
}

// Restore settings
LOGF_DEBUG("Initializing the CCD: SVBRestoreDefaultParam(%d).", mCameraInfo.CameraID);
ret = SVBRestoreDefaultParam(mCameraInfo.CameraID);
if (ret != SVB_SUCCESS)
{
LOGF_WARN("Error Initializing the CCD (%s).", Helpers::toString(ret));
}

LOGF_DEBUG("Initializing the CCD: SVBSetAutoSaveParam(%d, SVB_FALSE).", mCameraInfo.CameraID);
ret = SVBSetAutoSaveParam(mCameraInfo.CameraID, SVB_FALSE);
if (ret != SVB_SUCCESS)
{
LOGF_WARN("Error Initializing the CCD (%s).", Helpers::toString(ret));
}

// Get Camera Property
LOGF_DEBUG("Initializing the CCD: SVBGetCameraProperty(%d, &mCameraProperty).", mCameraInfo.CameraID);
ret = SVBGetCameraProperty(mCameraInfo.CameraID, &mCameraProperty);
if (ret != SVB_SUCCESS)
{
LOGF_ERROR("Error Initializing the CCD (%s).", Helpers::toString(ret));
return false;
}

LOGF_DEBUG("Initializing the CCD: SVBGetCameraPropertyEx(%d, &mCameraPropertyExtended).", mCameraInfo.CameraID);
ret = SVBGetCameraPropertyEx(mCameraInfo.CameraID, &mCameraPropertyExtended);
if (ret != SVB_SUCCESS)
{
Expand Down
Loading