From: hadaq Date: Thu, 13 Aug 2015 15:32:29 +0000 (+0200) Subject: added positive pulses to automatism, mt X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=3a2097cef803f251cd8b73c72899934f6424f7fe;p=daqtools.git added positive pulses to automatism, mt --- diff --git a/thresholds/thresholds_automatic.pl b/thresholds/thresholds_automatic.pl index b837882..edb2ba2 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 = -1*direction;; } elsif ($hit_diff > $accepted_dark_rate ) { $interval_step = int($interval_step/1.2); - $direction = -1; + $direction = -1*direction;; } else { $interval_step = int($interval_step/1.2); }