Closed erdmann closed 8 months ago
I'd assumed those functions were "internal", for example gp_port_open
is called by camera functions.
http://www.gphoto.org/doc/api/gphoto2-port_8h.html#a976f2b7d7c2bd3f5399a6f5829044957
However, you've got a good example of using them from Python so I'll add them in the next release of python-gphoto2.
I've just released v2.5.0 which includes the gp_port functions.
Hi, I'm trying to use the python-gphoto2 bindings to implement gphoto2's
gphoto2 --reset
port reset option for when things go pear-shaped with my camera. The gphoto2 source for that is here.Basically, it goes through a sequence of steps to do this:
gp_port_new
;gp_port_open
; and finallygp_port_reset
.I couldn't find a high-level reset functionality in python-gphoto2 so I thought I'd just roll my own since it's only a few lines. However, I didn't find any bindings for these three functions there. In README.md you mention that
Is this an intentional omission or just something that hasn't been implemented yet? Is there a better way to reset the port that doesn't involve these functions?
Many thanks in advance.