From 4fbcabb54d4d39a786a3be3904547de45f2e25de Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Sat, 24 Nov 2001 21:16:49 +0000 Subject: [PATCH] If no speed is specified, try the maximum git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3179 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/digita/serial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/camlibs/digita/serial.c b/camlibs/digita/serial.c index 239d79688..5fadcef61 100644 --- a/camlibs/digita/serial.c +++ b/camlibs/digita/serial.c @@ -203,6 +203,8 @@ int digita_serial_open(CameraPrivateLibrary *dev, Camera *camera) /* Remember the selected speed */ selected_speed = settings.serial.speed; + if (!selected_speed) + selected_speed = 115200; /* Try the maximum speed */ /* Set the settings */ settings.serial.speed = 9600;