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:
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user