From 3a2097cef803f251cd8b73c72899934f6424f7fe Mon Sep 17 00:00:00 2001 From: hadaq Date: Thu, 13 Aug 2015 17:32:29 +0200 Subject: [PATCH] added positive pulses to automatism, mt --- thresholds/thresholds_automatic.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.43.0