Skip to content

Commit

Permalink
Fixes missing return error code validation during camera initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
cnadler86 committed Nov 16, 2024
1 parent 10e6178 commit 263af74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion driver/cam_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ esp_err_t cam_config(const camera_config_t *config, framesize_t frame_size, uint
esp_err_t ret = ESP_OK;

ret = ll_cam_set_sample_mode(cam_obj, (pixformat_t)config->pixel_format, config->xclk_freq_hz, sensor_pid);

CAM_CHECK_GOTO(ret == ESP_OK, "ll_cam_set_sample_mode failed", err);

cam_obj->jpeg_mode = config->pixel_format == PIXFORMAT_JPEG;
#if CONFIG_IDF_TARGET_ESP32
cam_obj->psram_mode = false;
Expand Down

0 comments on commit 263af74

Please sign in to comment.