You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The close()-Method of the WiredGoPro appears to be a stub which does not correctly reset the state of a GoPro connected via USB.
To Reproduce
Using the context manager successfully connect via USB to the GoPro.
Leave the context manager, triggering a call to close().
Try connecting again. This will fail since the camera remains in a connected state.
Expected behavior
Closing the context manager successfully disables the usb control to support repeatedly entering the context manager without having to physically disconnect the camera to reset its state.
Screenshots
-/-
Hardware
Camera: HERO10 Black
macOS
Additional context
The following code appears to at least mitigate the problem. I am unsure whether additional cleanup is required.
defclose(self) ->None:
"""Gracefully close the GoPro Client connection"""self.http_command.wired_usb_control(control=Params.Toggle.DISABLE)
self._open=False
The text was updated successfully, but these errors were encountered:
Hi Laurendus, I'm having an issue with connecting to my HERO 10 Black via USB (#330). I'm very curios to know what code you're using to connect to the GoPro. Would you be able to share it?
Component
What is the bug in?
python sdk
Describe the bug
The
close()
-Method of the WiredGoPro appears to be a stub which does not correctly reset the state of a GoPro connected via USB.To Reproduce
close()
.Expected behavior
Closing the context manager successfully disables the usb control to support repeatedly entering the context manager without having to physically disconnect the camera to reset its state.
Screenshots
-/-
Hardware
Additional context
The following code appears to at least mitigate the problem. I am unsure whether additional cleanup is required.
The text was updated successfully, but these errors were encountered: