Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/drawwaveform.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-05-21 04:04:02 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-05-21 04:04:02 (GMT)
commit35f9b75b4928f922d66dee4f3dbf71a0811949a1 (patch)
treeb545cec8931626a1e0336e5f28dc3382f2d31e44 /drawwaveform.py
parentc0248b8062ff4ee2964ccecb765949b8b09101c6 (diff)
fix logic that was causing triggering on both rising and falling edges (#2203)
Diffstat (limited to 'drawwaveform.py')
-rw-r--r--drawwaveform.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/drawwaveform.py b/drawwaveform.py
index f60c473..58e07dc 100644
--- a/drawwaveform.py
+++ b/drawwaveform.py
@@ -339,7 +339,7 @@ class DrawWaveform(gtk.DrawingArea):
* self.draw_interval
position = -1
- if self.triggering and self.TRIGGER_POS:
+ if self.triggering == self.TRIGGER_POS:
ints = buf[samples - samples_to_end:\
- samples_to_end - 3] <= ypos
ints &= buf[samples - samples_to_end + 1:\
@@ -349,7 +349,7 @@ class DrawWaveform(gtk.DrawingArea):
if len(ints) > 0:
position = max(position, ints[-1])
- if self.triggering and self.TRIGGER_NEG:
+ elif self.triggering == self.TRIGGER_NEG:
ints = buf[samples - samples_to_end:\
-samples_to_end - 3] >= ypos
ints &= buf[samples - samples_to_end + 1:\