mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 09:59:03 +02:00
main: delete jtag if someone is wrong
This commit is contained in:
@@ -133,9 +133,11 @@ int main(int argc, char **argv)
|
||||
cout << "found " << std::to_string(found) << " devices" << endl;
|
||||
if (found > 1) {
|
||||
printError("Error: currently only one device is supported");
|
||||
delete(jtag);
|
||||
return EXIT_FAILURE;
|
||||
} else if (found < 1) {
|
||||
printError("Error: no device found");
|
||||
delete(jtag);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user