Closed
Description
hey so this only comes up if you do some modifications to the example code but Init() in the USBHost library calls init()
yet there is no "init()" in the library...there used to be in the original library
https://github.com/arduino-libraries/USBHost/blob/f563445a39da22798bd7985ad3faf857dfacda4e/src/Usb.cpp#L42
but that code is now just in Init.
so instead it ends up calling wiring's init() call, which resets GCLK and some other things. you can change the init() call to add other args to see where the call ends up
C:\Users\ladyada\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\USBHost\src\Usb.cpp:40:16: error: too many arguments to function 'void init()'
init(1,2,3,4,5);
^
In file included from C:\Users\ladyada\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/Arduino.h:84:0,
from C:\Users\ladyada\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\libraries\USBHost\src\Usb.cpp:20:
C:\Users\ladyada\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.2\cores\arduino/wiring.h:25:13: note: declared here
extern void init(void);
fix is just removing the call to init()