diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2019-12-23 21:39:03 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2019-12-23 21:39:03 +0100 |
commit | 65a110916051269e1b67f60850aff59ccb999480 (patch) | |
tree | 74b1346e889c6e0706053df9a63facb07d7e0a0d | |
parent | dcde7ccdfadb90f29d178a0b28c4696c9cd1a19e (diff) | |
download | libgphoto2-65a110916051269e1b67f60850aff59ccb999480.tar.gz |
wait 200 seconds for the exposure.
fixes https://github.com/gphoto/libgphoto2/issues/465
-rw-r--r-- | camlibs/ptp2/library.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index adc3bec5a..217ae36ea 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -3582,7 +3582,7 @@ capturetriggered: CR (gp_port_set_timeout (camera->port, capture_timeout)); - C_PTP_REP (nikon_wait_busy (params, 100, 20000)); /* lets wait 20 seconds */ + C_PTP_REP (nikon_wait_busy (params, 100, 200*1000)); /* lets wait 200 seconds */ newobject = 0xffff0001; done = 0; tries = 100; @@ -5314,7 +5314,8 @@ camera_trigger_capture (Camera *camera, GPContext *context) /* sleep a bit perhaps ? or check events? */ } while (tries--); - C_PTP_REP (nikon_wait_busy (params, 100, 20000)); /* lets wait 20 second */ + /* busyness will be reported during the whole of the exposure time. */ + C_PTP_REP (nikon_wait_busy (params, 100, 200*1000)); /* lets wait 200 seconds */ return GP_OK; } @@ -5348,7 +5349,7 @@ camera_trigger_capture (Camera *camera, GPContext *context) return translate_ptp_result (ret); } while (ret == PTP_RC_DeviceBusy); - C_PTP_REP (nikon_wait_busy (params, 100, 20000)); /* lets wait 20 seconds */ + C_PTP_REP (nikon_wait_busy (params, 100, 200*000)); /* lets wait 200 seconds */ return GP_OK; } |