No 115200.

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2920 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Lutz Mueller
2001-11-05 21:52:42 +00:00
parent d6f3b8d2dc
commit 68a583e4ac

View File

@@ -406,7 +406,7 @@ camera_init (Camera *camera)
{
int result = GP_OK, i;
GPPortSettings settings;
int speeds[] = {9600, 57600, 19200, 38400, 115200};
int speeds[] = {9600, 57600, 19200, 38400};
/* First, set up all the function pointers */
camera->functions->summary = camera_summary;
@@ -420,7 +420,7 @@ 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, 2000));
for (i = 0; i < 5; i++) {
for (i = 0; i < 4; i++) {
settings.serial.speed = speeds[i];
CHECK_RESULT (gp_port_set_settings (camera->port, settings));
result = pdc700_init (camera);
@@ -430,7 +430,7 @@ camera_init (Camera *camera)
if (result == GP_OK)
break;
}
if (i == 5)
if (i == 4)
return (result);
/* Set the speed to the highest one */