This commit is contained in:
刘可亮
2024-10-30 16:50:31 +08:00
parent 0ef85b55da
commit 661e71562d
458 changed files with 46555 additions and 12133 deletions

View File

@@ -41,7 +41,7 @@ int mpp_vin_init(char *camera)
pr_err("Failed to find camera %s\n", camera);
return -1;
}
if (rt_device_open(g_camera_dev, 'r') < 0) {
if (rt_device_open(g_camera_dev, RT_DEVICE_FLAG_RDONLY) < 0) {
pr_err("Failed to open camera %s\n", camera);
return -1;
}