summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2019-12-02 15:46:34 +0100
committerMarcus Meissner <marcus@jet.franken.de>2019-12-02 15:47:19 +0100
commiteea14580a7dde0efb892faed823ec2119fb58368 (patch)
tree1b24e581e248c5685e3993f538e43ccb383ef47b
parentc3036180c59bcc83d696e4915f1b7efde8cfdecf (diff)
downloadlibgphoto2-eea14580a7dde0efb892faed823ec2119fb58368.tar.gz
focusmode is 16bit per default, not 8bit. this might break big endian
https://github.com/gphoto/gphoto2/issues/268
-rw-r--r--camlibs/ptp2/library.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c
index 44adb5bdc..fdbeb8af4 100644
--- a/camlibs/ptp2/library.c
+++ b/camlibs/ptp2/library.c
@@ -4235,7 +4235,7 @@ camera_sony_capture (Camera *camera, CameraCaptureType type, CameraFilePath *pat
/* Check if we are in manual focus to skip the wait for focus */
C_PTP (ptp_generic_getdevicepropdesc (params, PTP_DPC_FocusMode, &dpd));
- if (dpd.CurrentValue.u8 == 2) {
+ if (dpd.CurrentValue.u16 == 2) {
/* Now hold down the shutter button for a bit. We probably need to hold it as long as it takes to
* get focus, indicated by the 0xD213 property. But hold it for at most 1 second.
@@ -5439,7 +5439,7 @@ camera_trigger_capture (Camera *camera, GPContext *context)
/* Wait for focus only in automatic focus mode */
C_PTP (ptp_generic_getdevicepropdesc (params, PTP_DPC_FocusMode, &dpd));
- if (dpd.CurrentValue.u8 == 2) {
+ if (dpd.CurrentValue.u16 == 2) {
/* Now hold down the shutter button for a bit. We probably need to hold it as long as it takes to
* get focus, indicated by the 0xD213 property. But hold it for at most 1 second.