Skip to content

Commit aac1967

Browse files
committed
main.cpp: added build option to enable/disable libusb scan
1 parent 9b4c1dc commit aac1967

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
#include "ice40.hpp"
3030
#include "lattice.hpp"
3131
#include "latticeSSPI.hpp"
32+
#ifdef ENABLE_USB_SCAN
3233
#include "libusb_ll.hpp"
34+
#endif
3335
#include "jtag.hpp"
3436
#include "part.hpp"
3537
#include "spiFlash.hpp"
@@ -1206,9 +1208,11 @@ void displaySupported(const struct arguments &args)
12061208
cout << endl;
12071209
}
12081210

1211+
#ifdef ENABLE_USB_SCAN
12091212
if (args.scan_usb) {
12101213
libusb_ll usb(0, 0, args.verbose);
12111214
usb.scan();
12121215
}
1216+
#endif
12131217
}
12141218

0 commit comments

Comments
 (0)