From 95559fa71331773a64e794628c43d6b2aa349aaf Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Sat, 16 Feb 2008 19:41:30 +0000 Subject: [PATCH] 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 --- jtag/ChangeLog | 1 + jtag/src/svf/svf.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index b223ad4e..a8aa9a04 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -8,6 +8,7 @@ 2008-02-16 Kolja Waschk + * 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 diff --git a/jtag/src/svf/svf.c b/jtag/src/svf/svf.c index cf24915d..f36bf85f 100644 --- a/jtag/src/svf/svf.c +++ b/jtag/src/svf/svf.c @@ -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; }