Skip to content

Commit ebfe06b

Browse files
committed
video: esp32: initialize video format
Make sure the driver initializes with the sensors default format. Signed-off-by: Armin Kessler <[email protected]>
1 parent 9f181b6 commit ebfe06b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/video/video_esp32_dvp.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,11 @@ static int video_esp32_init(const struct device *dev)
386386
return -ENODEV;
387387
}
388388

389+
if (video_get_format(dev, &data->video_format) < 0) {
390+
LOG_ERR("Failed to get format from source device");
391+
return -EINVAL;
392+
}
393+
389394
return 0;
390395
}
391396

0 commit comments

Comments
 (0)