-
Notifications
You must be signed in to change notification settings - Fork 151
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
Python SDK is using enum name instead of value for Set Setting Endpoint #400
Comments
Thanks, this really should not have slipped by. Let me add some unit testing for regression and open a PR |
It seems like with a bad value, the camera returns a 400, empty
I discovered this as the Hero 11 does not seem to support this setting in the video.py demo (at least while on usb): |
Yeah the SDK does not make an effort to know which settings are supported on which cameras / FW. That's why the demos don't assert on the status of these commands. The result of this is that settings are only set for the relevant firmware versions where this setting mattered; and rejected otherwise |
I just merged a PR to fix this. I will release 0.14.1 which will include this and other fixes now. |
Component
What is the bug in?
Describe the bug
The sdk is resulting in http command like:
http://172.28.151.51:8080/gopro/camera/setting?setting=162&option=MaxLensMode.DEFAULT
instead of:
http://172.28.151.51:8080/gopro/camera/setting?setting=162&option=0
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Correct url
Hardware
The text was updated successfully, but these errors were encountered: