]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
added positive pulses to automatism, mt
authorhadaq <M.Traxler@gsi.de>
Thu, 13 Aug 2015 15:34:02 +0000 (17:34 +0200)
committerhadaq <M.Traxler@gsi.de>
Thu, 13 Aug 2015 15:34:02 +0000 (17:34 +0200)
thresholds/thresholds_automatic.pl

index edb2ba2be6d990a0e106c54cd02b7b279598a768..b0fe86bd66cfa1ae8b13a56dc7ab770b8ab439a3 100755 (executable)
@@ -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);
        }