From 6a00466137ca8c20b519c7a5193b338f7e246935 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Thu, 4 Aug 2022 08:15:29 +0200 Subject: [PATCH] xilinx: flow_program/xc95: verify write: replace hardcoded number of sections by nb_section --- src/xilinx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xilinx.cpp b/src/xilinx.cpp index a245574..580b3bd 100644 --- a/src/xilinx.cpp +++ b/src/xilinx.cpp @@ -714,7 +714,7 @@ bool Xilinx::flow_program(JedParser *jed) std::string flash = flow_read(); int flash_pos = 0; ProgressBar progress2("Verify Flash", nb_section, 50, _quiet); - for (size_t section = 0; section < 108; section++) { + for (size_t section = 0; section < nb_section; section++) { for (size_t subsection = 0; subsection < 15; subsection++) { int id = section * 15 + subsection; std::string content = jed->data_for_section(id)[0];