Make the tranzport surface work even if the call to

usb_set_configuration() fails


git-svn-id: svn://localhost/ardour2/trunk@607 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sampo Savolainen
2006-06-15 20:55:54 +00:00
parent 0323d748de
commit e509ef5c06

View File

@@ -395,10 +395,7 @@ TranzportControlProtocol::open_core (struct usb_device* dev)
}
if (usb_set_configuration (udev, 1) < 0) {
error << _("Tranzport: cannot configure USB interface") << endmsg;
usb_close (udev);
udev = 0;
return -1;
cerr << _("Tranzport: cannot configure USB interface") << endmsg;
}
return 0;