From 72c2f6b80383aef36ff5614916da65a4f982ea85 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 5 Mar 2011 17:35:10 +0000 Subject: [PATCH] make default fast event timeout 100 instead of 50, as 50 caused corrupted reads git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13557 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/ptp2/usb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/camlibs/ptp2/usb.c b/camlibs/ptp2/usb.c index 38b695c8a..a14c4a0d3 100644 --- a/camlibs/ptp2/usb.c +++ b/camlibs/ptp2/usb.c @@ -60,8 +60,10 @@ #define PTP_CNT_INIT(cnt) {memset(&cnt,0,sizeof(cnt));} /* PTP2_FAST_TIMEOUT: how long (in milliseconds) we should wait for - * an URB to come back on an interrupt endpoint */ -#define PTP2_FAST_TIMEOUT 50 + * an URB to come back on an interrupt endpoint + * 50 is insufficient. + */ +#define PTP2_FAST_TIMEOUT 100 /* Pack / unpack functions */