diff options
-rw-r--r-- | camlibs/ptp2/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c index a224beb34..adf70f207 100644 --- a/camlibs/ptp2/config.c +++ b/camlibs/ptp2/config.c @@ -6848,8 +6848,10 @@ _put_Sony_ManualFocus(CONFIG_PUT_ARGS) CR (gp_widget_get_value(widget, &val)); if(val != 0.0) { + /* value 2 seems to set it to autofocusmode. see issue https://github.com/gphoto/libgphoto2/issues/434 xpropval.u16 = 2; C_PTP (ptp_sony_setdevicecontrolvalueb (params, 0xd2d2, &xpropval, PTP_DTC_UINT16)); + */ if(val <= -7) xpropval.u16 = 0xFFFF - 6; else if(val <= -6.0) xpropval.u16 = 0xFFFF - 5; else if(val <= -5.0) xpropval.u16 = 0xFFFF - 4; |