From ad50f1a19b408a85a2546d13099a19e4b01e3e58 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sun, 16 Feb 2020 16:53:55 +0100 Subject: [PATCH] main: calls program() only when a bit_file is provided --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index b9f7382..b7f487c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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();