X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/7df6b9563c7aed504b34f42bc46d01e051051bdd..a789619fbe2cd07347816cc5c168e8f904acca86:/LUFA/Drivers/USB/LowLevel/LowLevel.c diff --git a/LUFA/Drivers/USB/LowLevel/LowLevel.c b/LUFA/Drivers/USB/LowLevel/LowLevel.c index 41d9e10cc..3ad1e9830 100644 --- a/LUFA/Drivers/USB/LowLevel/LowLevel.c +++ b/LUFA/Drivers/USB/LowLevel/LowLevel.c @@ -121,7 +121,9 @@ void USB_ShutDown(void) USB_ResetInterface(); USB_Detach(); USB_Controller_Disable(); - USB_PLL_Off(); + + if (!(USB_Options & USB_OPT_MANUAL_PLL)) + USB_PLL_Off(); #if defined(USB_SERIES_4_AVR) || defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR) USB_OTGPAD_Off(); @@ -188,7 +190,7 @@ void USB_ResetInterface(void) if (USB_Options & USB_DEVICE_OPT_LOWSPEED) USB_Device_SetLowSpeed(); else - USB_Device_SetHighSpeed(); + USB_Device_SetFullSpeed(); USB_INT_Enable(USB_INT_VBUS); }