xilinx: flow_program/xc95: verify write: replace hardcoded number of sections by nb_section

This commit is contained in:
Gwenhael Goavec-Merou 2022-08-04 08:15:29 +02:00
parent c6d79ec2e8
commit 6a00466137
1 changed files with 1 additions and 1 deletions

View File

@ -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];