diff options
Diffstat (limited to 'camlibs/ptp2/library.c')
-rw-r--r-- | camlibs/ptp2/library.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index 9c4cb1d57..8380ccca8 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -378,13 +378,14 @@ fixup_cached_deviceinfo (Camera *camera, PTPDeviceInfo *di) { } if (di->VendorExtensionID == PTP_VENDOR_FUJI) { - C_MEM (di->DevicePropertiesSupported = realloc(di->DevicePropertiesSupported,sizeof(di->DevicePropertiesSupported[0])*(di->DevicePropertiesSupported_len + 5))); + C_MEM (di->DevicePropertiesSupported = realloc(di->DevicePropertiesSupported,sizeof(di->DevicePropertiesSupported[0])*(di->DevicePropertiesSupported_len + 6))); di->DevicePropertiesSupported[di->DevicePropertiesSupported_len+0] = PTP_DPC_ExposureTime; di->DevicePropertiesSupported[di->DevicePropertiesSupported_len+1] = PTP_DPC_FNumber; di->DevicePropertiesSupported[di->DevicePropertiesSupported_len+2] = 0xd38c; /* PC Mode */ di->DevicePropertiesSupported[di->DevicePropertiesSupported_len+3] = 0xd171; /* Focus control */ di->DevicePropertiesSupported[di->DevicePropertiesSupported_len+4] = 0xd21c; /* Needed for X-T2? */ - di->DevicePropertiesSupported_len += 5; + di->DevicePropertiesSupported[di->DevicePropertiesSupported_len+5] = 0xd347; /* Focus Position */ + di->DevicePropertiesSupported_len += 6; } /* Nikon DSLR hide its newer opcodes behind another vendor specific query, |