From 1df63e55b16aba9842c542055b615069f21d72c1 Mon Sep 17 00:00:00 2001 From: Stefan Jahn Date: Wed, 15 Feb 2023 22:19:49 +0100 Subject: [PATCH 1/2] Fixed video controls for SVBONY --- videodev-svbcam.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/videodev-svbcam.cc b/videodev-svbcam.cc index c8b069c..a966492 100644 --- a/videodev-svbcam.cc +++ b/videodev-svbcam.cc @@ -178,10 +178,12 @@ int VideoDev_SVBCam::Open() { print_error(err); return VDEV_STATUS_ERROR; } - printf ("%s:%d %s Got Control idx:%d name:%s desc:%s [%ld - %ld]\n", __FILE__, __LINE__, __FUNCTION__, - i, camcontrols[i].Name, camcontrols[i].Description, (long)camcontrols[i].MinValue, (long)camcontrols[i].MaxValue); + printf ("%s:%d %s Control-%02d name:%s desc:%s [%ld:%ld-%ld] auto:%ld write:%ld type:%d\n", __FILE__, __LINE__, __FUNCTION__, + i, camcontrols[i].Name, camcontrols[i].Description, + (long)camcontrols[i].DefaultValue, (long)camcontrols[i].MinValue, (long)camcontrols[i].MaxValue, + (long)camcontrols[i].IsAutoSupported, (long)camcontrols[i].IsWritable, (unsigned int)camcontrols[i].ControlType); vctl.name = (char*)camcontrols[i].Name; - vctl.id = i; + vctl.id = camcontrols[i].ControlType; vctl.min = camcontrols[i].MinValue; vctl.max = camcontrols[i].MaxValue; GetDevCtrl(i, &vctl.value); From 4b8ce579d38550aa0ff1aebe94d65575e695b761 Mon Sep 17 00:00:00 2001 From: Stefan Jahn Date: Wed, 15 Feb 2023 23:01:21 +0100 Subject: [PATCH 2/2] Disabling tty logging in windows part --- posctl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posctl.cc b/posctl.cc index da8756a..af0a733 100644 --- a/posctl.cc +++ b/posctl.cc @@ -906,7 +906,7 @@ int PosCtl::OutputOpen() { }; int PosCtl::WriteTTY (char * outbuf) { - printf ("%s:%d %s send: '%s'\n", __FILE__, __LINE__, __FUNCTION__, outbuf); + //printf ("%s:%d %s send: '%s'\n", __FILE__, __LINE__, __FUNCTION__, outbuf); #ifdef BUILD_WINDOWS DWORD len; @@ -949,7 +949,7 @@ int PosCtl::ReadTTY (char * inbuf, int length) { } else { inbuf[len] = 0; - printf ("%s:%d %s receive: '%s'\n", __FILE__, __LINE__, __FUNCTION__, inbuf); + //printf ("%s:%d %s receive: '%s'\n", __FILE__, __LINE__, __FUNCTION__, inbuf); } #else ssize_t len;