logic_analyzer: fix #35, patch typos in trigger set logic

This commit is contained in:
Fischer Moseley 2025-04-08 00:12:57 -07:00
parent b9a7e75355
commit 10593c768e
1 changed files with 7 additions and 2 deletions

View File

@ -275,9 +275,14 @@ class LogicAnalyzerCore(MantaCore):
# Validate triggers
self._validate_triggers(triggers)
self.trigger_mode = mode
self._trigger_mode = mode
self._triggers = triggers
self._trigger_location = trigger_location or self._sample_depth // 2
if trigger_location is None:
self._trigger_location = self._sample_depth // 2
else:
self._trigger_location = trigger_location
def capture(self):
"""