From 68a583e4ac0fb490d063a92d8a62bc6e7bd849d1 Mon Sep 17 00:00:00 2001 From: Lutz Mueller Date: Mon, 5 Nov 2001 21:52:42 +0000 Subject: [PATCH] No 115200. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2920 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/polaroid/pdc700.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/camlibs/polaroid/pdc700.c b/camlibs/polaroid/pdc700.c index 08f474364..1be2101a7 100644 --- a/camlibs/polaroid/pdc700.c +++ b/camlibs/polaroid/pdc700.c @@ -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 */