main: calls program() only when a bit_file is provided

This commit is contained in:
Gwenhael Goavec-Merou
2020-02-16 16:53:55 +01:00
parent 6a2489cfac
commit ad50f1a19b
+2 -1
View File
@@ -170,7 +170,8 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
fpga->program(args.offset);
if (!args.bit_file.empty())
fpga->program(args.offset);
if (args.reset)
fpga->reset();