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
This commit is contained in:
Johannes Erdfelt
2001-11-24 21:16:49 +00:00
parent 7f35c8640b
commit 4fbcabb54d

View File

@@ -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;