From: hadaq Date: Thu, 13 Aug 2015 15:34:02 +0000 (+0200) Subject: added positive pulses to automatism, mt X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=6769c6b39763f4dd583d47465a97ca29753e2caa;p=daqtools.git added positive pulses to automatism, mt --- diff --git a/thresholds/thresholds_automatic.pl b/thresholds/thresholds_automatic.pl index edb2ba2..b0fe86b 100755 --- a/thresholds/thresholds_automatic.pl +++ b/thresholds/thresholds_automatic.pl @@ -236,10 +236,10 @@ while ($number_of_steps < $number_of_iterations || my $direction = $default_direction; if ($static_value == ($polarity ? 0 : 1)) { $interval_step = int($interval_step/1.2); - $direction = -1*direction;; + $direction = -1 * $direction; } elsif ($hit_diff > $accepted_dark_rate ) { $interval_step = int($interval_step/1.2); - $direction = -1*direction;; + $direction = -1 * $direction; } else { $interval_step = int($interval_step/1.2); }