xilinx.cpp: nitpick

This commit is contained in:
Gwenhael Goavec-Merou 2026-01-29 14:43:35 +01:00
parent e34669417b
commit b3a8ea03d5
1 changed files with 1 additions and 4 deletions

View File

@ -841,10 +841,7 @@ void Xilinx::program_mem(ConfigBitstreamParser *bitfile)
const uint8_t *data = bitfile->getData();
int tx_len;
Jtag::tapState_t tx_end;
int burst_len = byte_length / 100;
if (burst_len == 0)
burst_len = byte_length;
const int burst_len = (byte_length < 100) ? byte_length : byte_length / 100;
ProgressBar progress("Load SRAM", byte_length, 50, _quiet);