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
1 changed files with 2 additions and 1 deletions

View File

@ -170,6 +170,7 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
if (!args.bit_file.empty())
fpga->program(args.offset);
if (args.reset)