Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error Querying Menu" when setting value #45

Open
alvarop opened this issue Dec 25, 2019 · 0 comments
Open

"Error Querying Menu" when setting value #45

alvarop opened this issue Dec 25, 2019 · 0 comments

Comments

@alvarop
Copy link

alvarop commented Dec 25, 2019

There seem to be cases in v4l2 devices where the menu options are not contiguous. For example (Logitech C920 v4l2-ctl -L output):

                 exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=1
   			1: Manual Mode
   			3: Aperture Priority Mode

When trying to change this setting here it cycles through each menu item to compare it with the input text. Since indexes 0 and 2 don't have test, the error message is printed out.

I'd suggest not printing out an error there since it's not really a problem and if the value doesn't match it will be caught below. Maybe a warning or a message would be more appropriate if something must be printed out at all.

alvarop added a commit to alvarop/timelapse that referenced this issue Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant