From 2bb1fc1a0aca659a4b7d4ff8ae0fd2eed67a76bd Mon Sep 17 00:00:00 2001 From: Michael Koltan Date: Wed, 23 Oct 2002 20:41:22 +0000 Subject: [PATCH] Set down the timeout values to speed up the driver git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5427 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/kodak/dc210/dc210.h | 2 +- camlibs/kodak/dc210/library.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/camlibs/kodak/dc210/dc210.h b/camlibs/kodak/dc210/dc210.h index 0dc9e2c37..50efe5fa2 100644 --- a/camlibs/kodak/dc210/dc210.h +++ b/camlibs/kodak/dc210/dc210.h @@ -98,7 +98,7 @@ typedef struct { } dc210_picture_info ; #undef DEBUG -#define TIMEOUT 1000 +#define TIMEOUT 500 #define RETRIES 5 #define GP_MODULE "kodak-dc210" diff --git a/camlibs/kodak/dc210/library.c b/camlibs/kodak/dc210/library.c index 8f8a1e7a9..6aeb2140d 100644 --- a/camlibs/kodak/dc210/library.c +++ b/camlibs/kodak/dc210/library.c @@ -730,7 +730,10 @@ int dc210_init_port (Camera *camera){ /* ok, run a dummy command; if the camera was off, this will activate it and set the speed to 9600; - but the command will return an error */ + but the command will return an error; + It makes no sense to shorten the timout time, + because it may need up to 10 seconds (information + of the manual) to startup */ if (dc210_check_battery(camera) == GP_OK) return GP_OK; /* Fine, the last command didn't work, but we are now