Skip to content

Commit

Permalink
Merge pull request #703 from cnadler86/fix_init
Browse files Browse the repository at this point in the history
Fixes missing return error code validation during camera initialization
  • Loading branch information
me-no-dev authored Nov 18, 2024
2 parents 10e6178 + 263af74 commit 229adc6
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 229adc6

Please sign in to comment.