main: calls program() only when a bit_file is provided
This commit is contained in:
parent
6a2489cfac
commit
ad50f1a19b
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue