Skip to content
Snippets Groups Projects
Commit 261c375c authored by Cristian Maglie's avatar Cristian Maglie
Browse files

USBHost: removed wrong init() calls

USBHost used to have an init() method that now is incorporated in
Init(). The leftover init() calls in the library were calling
the init() function in the variant files instead (that has nothing
to do with the USBHost library).

Removing the calls to init() fix it.

Fix #115
parent d89aaf15
Branches
Tags
No related merge requests found
......@@ -5,6 +5,7 @@ SAMD CORE 1.6.4
* USBHost: fixed blocking USBHost.Task(). Thanks @bbx10
* USBHost: fixed some ASCII Control codes in keyboard controller. Thanks @bbx10
* USBHost: ported some minor fix from upstream UHS2. Thanks @bbx10
* USBHost: fixed wrong library initialization. Thanks @bbx10 @ladyada
SAMD CORE 1.6.3 2016.02.15
......
......@@ -36,7 +36,6 @@ USBHost::USBHost() : bmHubPre(0) {
uint32_t USBHost::Init() {
//devConfigIndex = 0;
// Init host stack
init();
bmHubPre = 0;
UHD_Init();
return 0;
......@@ -507,7 +506,6 @@ void USBHost::Task(void) //USB state machine
// Init USB stack and driver
UHD_Init();
init();
// Free all USB resources
for (uint32_t i = 0; i < USB_NUMDEVICES; ++i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment