Remove verbose prints from CameraServer on Linux due to being printed every second

This commit is contained in:
Hugo Locurcio 2024-09-26 00:08:06 +02:00
parent f7c567e2f5
commit 87709cfdf2
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
1 changed files with 0 additions and 3 deletions

View File

@ -134,17 +134,14 @@ bool CameraLinux::_is_video_capture_device(int p_file_descriptor) {
struct v4l2_capability capability;
if (ioctl(p_file_descriptor, VIDIOC_QUERYCAP, &capability) == -1) {
print_verbose("Cannot query device");
return false;
}
if (!(capability.capabilities & V4L2_CAP_VIDEO_CAPTURE)) {
print_verbose(vformat("%s is no video capture device\n", String((char *)capability.card)));
return false;
}
if (!(capability.capabilities & V4L2_CAP_STREAMING)) {
print_verbose(vformat("%s does not support streaming", String((char *)capability.card)));
return false;
}