2001-11-05 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/polaroid/pdc700.c: Timeout = 2sec, try each speed 2 times. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2915 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2001-11-05 Lutz Müller <urc8@rz.uni-karlsruhe.de>
|
||||
|
||||
* camlibs/polaroid/pdc700.c: Timeout = 2sec, try each speed 2 times.
|
||||
|
||||
2001-11-05 Lutz Müller <urc8@rz.uni-karlsruhe.de>
|
||||
|
||||
* camlibs/sierra/PROTOCOL: Updated (upload).
|
||||
|
||||
@@ -396,19 +396,22 @@ camera_init (Camera *camera)
|
||||
|
||||
/* Check if the camera is really there */
|
||||
CHECK_RESULT (gp_port_get_settings (camera->port, &settings));
|
||||
CHECK_RESULT (gp_port_set_timeout (camera->port, 1000));
|
||||
CHECK_RESULT (gp_port_set_timeout (camera->port, 2000));
|
||||
for (i = 0; i < 5; i++) {
|
||||
settings.serial.speed = speeds[i];
|
||||
CHECK_RESULT (gp_port_set_settings (camera->port, settings));
|
||||
result = pdc700_init (camera->port);
|
||||
if (result == GP_OK)
|
||||
break;
|
||||
result = pdc700_init (camera->port);
|
||||
if (result == GP_OK)
|
||||
break;
|
||||
}
|
||||
if (i == 4)
|
||||
if (i == 5)
|
||||
return (result);
|
||||
|
||||
/* Set the speed to the highest one */
|
||||
if (speeds[i] != 57600) {
|
||||
if (speeds[i] < 57600) {
|
||||
CHECK_RESULT (pdc700_baud (camera->port, 57600));
|
||||
settings.serial.speed = 57600;
|
||||
CHECK_RESULT (gp_port_set_settings (camera->port, settings));
|
||||
|
||||
Reference in New Issue
Block a user