return ERROR_OK;
}
+#ifdef HAVE_LIBUSB_GET_PORT_NUMBERS
COMMAND_HANDLER(ftdi_handle_location_command)
{
if (CMD_ARGC == 1) {
return ERROR_OK;
}
+#endif
COMMAND_HANDLER(ftdi_handle_channel_command)
{
.help = "set the serial number of the FTDI device",
.usage = "serial_string",
},
+#ifdef HAVE_LIBUSB_GET_PORT_NUMBERS
{
.name = "ftdi_location",
.handler = &ftdi_handle_location_command,
.help = "set the USB bus location of the FTDI device",
.usage = "<bus>:port[,port]...",
},
+#endif
{
.name = "ftdi_channel",
.handler = &ftdi_handle_channel_command,