mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 18:02:38 +02:00
main: calls program() only when a bit_file is provided
This commit is contained in:
+2
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user