Skip to content

Commit

Permalink
Update ASI_functions.cpp: add closeCamera()
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Aug 14, 2023
1 parent 49cb28a commit 182808e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ASI_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,9 @@ ASI_ERROR_CODE ASIGetControlValue(int iCameraIndex, ASI_CONTROL_TYPE ControlType
}


// Empty routine so code compiles.
int stopVideoCapture(int cameraID) { return(ASI_SUCCESS); }
// Empty routines so code compiles.
int stopVideoCapture(int cameraID) { return((int) ASI_SUCCESS); }
int closeCamera(int cameraID) { return((int) ASI_SUCCESS); }

// Get the camera's serial number. RPi cameras don't support serial numbers.
ASI_ERROR_CODE ASIGetSerialNumber(int iCameraIndex, ASI_SN *pSN)
Expand Down Expand Up @@ -592,6 +593,10 @@ int stopVideoCapture(int cameraID)
{
return((int) ASIStopVideoCapture(cameraID));
}
int closeCamera(int cameraID)
{
return((int) ASICloseCamera(cameraID));
}

int getCameraNumber()
{
Expand Down

0 comments on commit 182808e

Please sign in to comment.