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
This commit is contained in:
Michael Koltan
2002-10-23 20:41:22 +00:00
parent 0852cba178
commit 2bb1fc1a0a
2 changed files with 5 additions and 2 deletions

View File

@@ -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"

View File

@@ -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