[ fix ] 0001-stlink-gui-Follow-new-stlink_open-usage, fix from Jim Huang <jserv@0xlab...
authortexane <texane@gmail.com>
Sun, 1 Sep 2013 03:04:21 +0000 (22:04 -0500)
committertexane <texane@gmail.com>
Sun, 1 Sep 2013 03:04:21 +0000 (22:04 -0500)
gui/stlink-gui.c

index fde1d34ba89652d14b0736c8f22537b2f1fa9eef..3646c3a4fca118ab2c5e129cbfbf9acff432fff4 100644 (file)
@@ -528,9 +528,9 @@ connect_button_cb (GtkWidget *widget, gpointer data)
                return;
 
        /* try version 1 then version 2 */
-       gui->sl = stlink_v1_open(0);
+       gui->sl = stlink_v1_open(0, 1);
        if (gui->sl == NULL) {
-           gui->sl = stlink_open_usb(0);
+           gui->sl = stlink_open_usb(0, 1);
        }
        if (gui->sl == NULL) {
                stlink_gui_set_info_error_message (gui, "Failed to connect to STLink.");                return;