xmos / lib_device_control

xCORE device control library
Other
2 stars 16 forks source link

Compile error from #16

Closed ThomasGmeinder closed 8 years ago

ThomasGmeinder commented 8 years ago

After fixing the issue #15 in Makefile.OSX I get a new error: host.c:25:38: error: too few arguments to function call, expected 3, have 2 if (control_init_usb(0x20B1, 0x1010) != CONTROL_SUCCESS) {

host.c:25:38: error: too few arguments to function call, expected 3, have 2 if (control_init_usb(0x20B1, 0x1010) != CONTROL_SUCCESS) {


../../../lib_device_control/host/control_host.h:23:1: note: 'control_init_usb' declared here
control_ret_t control_init_usb(int vendor_id, int product_id, int interface);
^
1 error generated.

This can be fixed by adding parameter "interface". E.g 
  if (control_init_usb(0x20B1, 0x1010, 0) != CONTROL_SUCCESS) {
xross commented 8 years ago

This was fixed in 8f951d0e373210220e5726d4a25c88194f1f4379