- comment out usb_set_altinterface, because it is not working under Mac OS X.
authormifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 24 May 2008 15:40:32 +0000 (15:40 +0000)
committermifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 24 May 2008 15:40:32 +0000 (15:40 +0000)
And not needed for Windows. Hopefully it will not break a Linux build.

git-svn-id: svn://svn.berlios.de/openocd/trunk@684 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jlink.c

index 3d2468e1471be53d6d1daea4f906f13ebec060cc..16bd30d077dcb149a7b48daed467c41f7d78457a 100644 (file)
@@ -763,7 +763,14 @@ jlink_jtag_t* jlink_usb_open()
                                /* usb_set_configuration required under win32 */
                                usb_set_configuration(result->usb_handle, dev->config[0].bConfigurationValue);
                                usb_claim_interface(result->usb_handle, 0);
+                               
+#if 0
+                               /* 
+                                * This makes problems under Mac OS X. And is not needed
+                                * under Windows. Hopefully this will not break a linux build
+                                */
                                usb_set_altinterface(result->usb_handle, 0);
+#endif                         
                                return result;
                        }
                }