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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user