usbBlaster: fix #ifdef ENABLE_USB_BLASTERII location at CTOR level
This commit is contained in:
parent
834c45b682
commit
5d69478d0b
|
|
@ -49,8 +49,8 @@ UsbBlaster::UsbBlaster(const cable_t &cable, const std::string &firmware_path,
|
||||||
#else
|
#else
|
||||||
throw std::runtime_error("usb-blasterI: Not build");
|
throw std::runtime_error("usb-blasterI: Not build");
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_USB_BLASTERII
|
|
||||||
else if (cable.pid == 0x6810 || cable.pid == 0x6010)
|
else if (cable.pid == 0x6810 || cable.pid == 0x6010)
|
||||||
|
#ifdef ENABLE_USB_BLASTERII
|
||||||
ll_driver = new UsbBlasterII(firmware_path);
|
ll_driver = new UsbBlasterII(firmware_path);
|
||||||
#else
|
#else
|
||||||
throw std::runtime_error("usb-blasterII: Not build");
|
throw std::runtime_error("usb-blasterII: Not build");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue