DFU: fix detect -> bypass bitstream

This commit is contained in:
Gwenhael Goavec-Merou
2022-06-18 18:39:58 +02:00
parent e278b87a64
commit e21a251af3
3 changed files with 48 additions and 32 deletions
+2 -1
View File
@@ -346,7 +346,8 @@ int main(int argc, char **argv)
}
try {
dfu = new DFU(args.bit_file, vid, pid, altsetting, args.verbose);
dfu = new DFU(args.bit_file, args.detect, vid, pid, altsetting,
args.verbose);
} catch (std::exception &e) {
printError("DFU init failed with: " + string(e.what()));
return EXIT_FAILURE;