dfu: don't check filename -> let configBitstreamParser to do check
This commit is contained in:
parent
f404199e25
commit
e182a53659
|
|
@ -57,8 +57,8 @@ DFU::DFU(const string &filename, uint16_t vid, uint16_t pid,
|
||||||
struct dfu_status status;
|
struct dfu_status status;
|
||||||
int dfu_vid = 0, dfu_pid = 0;
|
int dfu_vid = 0, dfu_pid = 0;
|
||||||
|
|
||||||
if (!filename.empty()) {
|
printInfo("Open file ", false);
|
||||||
printInfo("Open file " + filename + " ", false);
|
|
||||||
try {
|
try {
|
||||||
_bit = new DFUFileParser(filename, _verbose > 0);
|
_bit = new DFUFileParser(filename, _verbose > 0);
|
||||||
printSuccess("DONE");
|
printSuccess("DONE");
|
||||||
|
|
@ -88,7 +88,6 @@ DFU::DFU(const string &filename, uint16_t vid, uint16_t pid,
|
||||||
if (_verbose)
|
if (_verbose)
|
||||||
printWarn(e.what());
|
printWarn(e.what());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (libusb_init(&usb_ctx) < 0) {
|
if (libusb_init(&usb_ctx) < 0) {
|
||||||
delete _bit;
|
delete _bit;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue