Skip to content

Commit

Permalink
SVBONY Camera has the ability to automatically save/load configuratio…
Browse files Browse the repository at this point in the history
…n files.

Loading a settings file that has been modified by another application may result in unintended behavior.
Therefore, when using the SVBONY Camera, you should set the settings to default, disable automatic saving/loading of the configuration file, and initialize the parameters again according to the configuration file of the INDI SVBONY CCD Driver. Proposed by @jctk
  • Loading branch information
knro committed Sep 28, 2023
1 parent 9db34dd commit a20e532
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions indi-svbony/svbony_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,20 @@ bool SVBONYBase::Connect()
return false;
}

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

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

// Get Camera Property
ret = SVBGetCameraProperty(mCameraInfo.CameraID, &mCameraProperty);
if (ret != SVB_SUCCESS)
{
Expand Down

0 comments on commit a20e532

Please sign in to comment.