Skip to content

Commit

Permalink
Add new ASI error codes to fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaana committed Oct 28, 2023
1 parent ad060d1 commit e380be9
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions indi-asi/asi_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,30 @@ const char *toString(ASI_ERROR_CODE code)
{
switch (code)
{
case ASI_SUCCESS: return "ASI_SUCCESS";
case ASI_ERROR_INVALID_INDEX: return "ASI_ERROR_INVALID_INDEX";
case ASI_ERROR_INVALID_ID: return "ASI_ERROR_INVALID_ID";
case ASI_ERROR_INVALID_CONTROL_TYPE: return "ASI_ERROR_INVALID_CONTROL_TYPE";
case ASI_ERROR_CAMERA_CLOSED: return "ASI_ERROR_CAMERA_CLOSED";
case ASI_ERROR_CAMERA_REMOVED: return "ASI_ERROR_CAMERA_REMOVED";
case ASI_ERROR_INVALID_PATH: return "ASI_ERROR_INVALID_PATH";
case ASI_ERROR_INVALID_FILEFORMAT: return "ASI_ERROR_INVALID_FILEFORMAT";
case ASI_ERROR_INVALID_SIZE: return "ASI_ERROR_INVALID_SIZE";
case ASI_ERROR_INVALID_IMGTYPE: return "ASI_ERROR_INVALID_IMGTYPE";
case ASI_ERROR_OUTOF_BOUNDARY: return "ASI_ERROR_OUTOF_BOUNDARY";
case ASI_ERROR_TIMEOUT: return "ASI_ERROR_TIMEOUT";
case ASI_ERROR_INVALID_SEQUENCE: return "ASI_ERROR_INVALID_SEQUENCE";
case ASI_ERROR_BUFFER_TOO_SMALL: return "ASI_ERROR_BUFFER_TOO_SMALL";
case ASI_ERROR_VIDEO_MODE_ACTIVE: return "ASI_ERROR_VIDEO_MODE_ACTIVE";
case ASI_ERROR_EXPOSURE_IN_PROGRESS: return "ASI_ERROR_EXPOSURE_IN_PROGRESS";
case ASI_ERROR_GENERAL_ERROR: return "ASI_ERROR_GENERAL_ERROR";
case ASI_ERROR_INVALID_MODE: return "ASI_ERROR_INVALID_MODE";
case ASI_ERROR_END: return "ASI_ERROR_END";
case ASI_SUCCESS: return "ASI_SUCCESS";
case ASI_ERROR_INVALID_INDEX: return "ASI_ERROR_INVALID_INDEX";
case ASI_ERROR_INVALID_ID: return "ASI_ERROR_INVALID_ID";
case ASI_ERROR_INVALID_CONTROL_TYPE: return "ASI_ERROR_INVALID_CONTROL_TYPE";
case ASI_ERROR_CAMERA_CLOSED: return "ASI_ERROR_CAMERA_CLOSED";
case ASI_ERROR_CAMERA_REMOVED: return "ASI_ERROR_CAMERA_REMOVED";
case ASI_ERROR_INVALID_PATH: return "ASI_ERROR_INVALID_PATH";
case ASI_ERROR_INVALID_FILEFORMAT: return "ASI_ERROR_INVALID_FILEFORMAT";
case ASI_ERROR_INVALID_SIZE: return "ASI_ERROR_INVALID_SIZE";
case ASI_ERROR_INVALID_IMGTYPE: return "ASI_ERROR_INVALID_IMGTYPE";
case ASI_ERROR_OUTOF_BOUNDARY: return "ASI_ERROR_OUTOF_BOUNDARY";
case ASI_ERROR_TIMEOUT: return "ASI_ERROR_TIMEOUT";
case ASI_ERROR_INVALID_SEQUENCE: return "ASI_ERROR_INVALID_SEQUENCE";
case ASI_ERROR_BUFFER_TOO_SMALL: return "ASI_ERROR_BUFFER_TOO_SMALL";
case ASI_ERROR_VIDEO_MODE_ACTIVE: return "ASI_ERROR_VIDEO_MODE_ACTIVE";
case ASI_ERROR_EXPOSURE_IN_PROGRESS: return "ASI_ERROR_EXPOSURE_IN_PROGRESS";
case ASI_ERROR_GENERAL_ERROR: return "ASI_ERROR_GENERAL_ERROR";
case ASI_ERROR_INVALID_MODE: return "ASI_ERROR_INVALID_MODE";
case ASI_ERROR_GPS_NOT_SUPPORTED: return "ASI_ERROR_GPS_NOT_SUPPORTED";
case ASI_ERROR_GPS_VER_ERR: return "ASI_ERROR_GPS_VER_ERR";
case ASI_ERROR_GPS_FPGA_ERR: return "ASI_ERROR_GPS_FPGA_ERR";
case ASI_ERROR_GPS_PARAM_OUT_OF_RANGE: return "ASI_ERROR_GPS_PARAM_OUT_OF_RANGE";
case ASI_ERROR_GPS_DATA_INVALID: return "ASI_ERROR_GPS_DATA_INVALID";
case ASI_ERROR_END: return "ASI_ERROR_END";
}
return "UNKNOWN";
}
Expand Down

0 comments on commit e380be9

Please sign in to comment.