Small fix for computation of run_count from min_time and cable frequency

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1035 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 17 years ago
parent 5d4f9d86be
commit 95559fa713

@ -8,6 +8,7 @@
2008-02-16 Kolja Waschk <kawk>
* src/svf/svf.c: Small fix for computation of run_count from min_time
* doc/UrJTAG.txt: Updated doc about building with FTD2XX in Cygwin
* src/tap/cable.c, include/cable.h, src/tap/cable/*.c (all drivers):
moved cable_set_frequency functionality from cable.c to the cable

@ -678,7 +678,7 @@ svf_runtest(struct runtest *params)
run_count = params->run_count;
frequency = cable_get_frequency(chain->cable);
if (frequency > 0) {
uint32_t min_time_run_count = ceil(params->min_time / frequency);
uint32_t min_time_run_count = ceil(params->min_time * frequency);
if (min_time_run_count > run_count) {
run_count = min_time_run_count;
}

Loading…
Cancel
Save