On Thu, Apr 21, 2022 at 11:44:02AM +0100, Jim Easterbrook wrote: > Hi Marcus, > > I'm getting a "PTP Operation Not Supported" error during gp_camera_exit > after having called gp_camera_get_config, with my Canon A1100 IS camera. > This is with libgphoto2 v2.5.29. I'm not sure which version of libgphoto2 > was the first to be affected - I know it used to work OK with this camera, > but I haven't used it for a while.
I applied this missing check patch to current libgphoto2 git which should avoid it hopefully. Ciao, Marcus commit 1ee0d5c71720aa4a62ccb07a5045b371a3cd117d Author: Marcus Meissner <mar...@jet.franken.de> Date: Thu Apr 21 13:12:11 2022 +0200 check for eos_setremotemode diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index 05f21de41..fc30ee0ad 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -3122,7 +3122,9 @@ camera_exit (Camera *camera, GPContext *context) goto exitfailed; } /* this switches the display back on ... */ - C_PTP (ptp_canon_eos_setremotemode(params, 1)); + if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_SetRemoteMode)) { + C_PTP (ptp_canon_eos_setremotemode(params, 1)); + } break; case PTP_VENDOR_NIKON: if (ptp_operation_issupported(params, PTP_OC_NIKON_EndLiveView)) _______________________________________________ Gphoto-devel mailing list Gphoto-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gphoto-devel