analyzer-driver: use default depth from config

The configuration already knows what the default depth is, so just use
the default depth from there.

Also set the default offset to 0, since that is frequently a good default.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2018-09-13 13:46:23 +08:00
parent 7c1c62e34a
commit 4f8b9a3567
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,9 @@ class LiteScopeAnalyzerDriver:
def configure_subsampler(self, value):
self.subsampler_value.write(value-1)
def run(self, offset, length):
def run(self, offset = 0, length = None):
if length is None:
length = self.depth
assert offset < self.depth
assert length <= self.depth
if self.debug: