main.cpp: added build option to enable/disable libusb scan

This commit is contained in:
Gwenhael Goavec-Merou 2025-10-29 09:09:28 +01:00
parent 9b4c1dc9a9
commit aac19677ac
1 changed files with 4 additions and 0 deletions

View File

@ -29,7 +29,9 @@
#include "ice40.hpp"
#include "lattice.hpp"
#include "latticeSSPI.hpp"
#ifdef ENABLE_USB_SCAN
#include "libusb_ll.hpp"
#endif
#include "jtag.hpp"
#include "part.hpp"
#include "spiFlash.hpp"
@ -1206,9 +1208,11 @@ void displaySupported(const struct arguments &args)
cout << endl;
}
#ifdef ENABLE_USB_SCAN
if (args.scan_usb) {
libusb_ll usb(0, 0, args.verbose);
usb.scan();
}
#endif
}