actually set values via controla here again, the controlb method is done
in config.c git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15266 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -3017,12 +3017,11 @@ ptp_generic_setdevicepropvalue (PTPParams* params, uint16_t propcode,
|
||||
params->deviceproperties[i].timestamp = 0;
|
||||
|
||||
/* FIXME: change the cache? hmm */
|
||||
/* setting it again seems to confuse the camera, it only works by using the other method */
|
||||
/* this works for some methods, but not for all */
|
||||
if ( (params->deviceinfo.VendorExtensionID == PTP_VENDOR_SONY) &&
|
||||
ptp_operation_issupported(params, PTP_OC_SONY_SetControlDeviceB)
|
||||
ptp_operation_issupported(params, PTP_OC_SONY_SetControlDeviceA)
|
||||
)
|
||||
/*return ptp_sony_setdevicecontrolvalueb (params, propcode, value, datatype);*/
|
||||
return PTP_RC_OK;
|
||||
return ptp_sony_setdevicecontrolvaluea (params, propcode, value, datatype);
|
||||
return ptp_setdevicepropvalue (params, propcode, value, datatype);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user