don't uninitialize usb during libsicksaxis shutdown, fixes USB devices crashing on load

This commit is contained in:
Toad King 2015-07-23 19:06:21 -05:00
parent 7157ff69d5
commit 45e9055a63

View File

@ -39,8 +39,6 @@ static int _ss_set_operational(struct ss_device *dev);
int ss_init(struct ss_device *dev_list, int slots) { int ss_init(struct ss_device *dev_list, int slots) {
if (!_ss_inited) { if (!_ss_inited) {
USB_Initialize();
_ss_dev_list = dev_list; _ss_dev_list = dev_list;
_slots = slots; _slots = slots;
@ -62,7 +60,6 @@ int ss_shutdown() {
_ss_close(&_ss_dev_list[i]); _ss_close(&_ss_dev_list[i]);
} }
USB_Deinitialize();
_ss_inited = 0; _ss_inited = 0;
return 1; return 1;