software/driver/logic_analyzer: fix case when config_csv is provided as a parameter

This commit is contained in:
Florent Kermarrec 2016-01-11 19:09:48 +01:00
parent 83e06cad80
commit 88c4e2d126
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ class LiteScopeLogicAnalyzerDriver():
def __init__(self, regs, name, config_csv=None, clk_freq=None, debug=False): def __init__(self, regs, name, config_csv=None, clk_freq=None, debug=False):
self.regs = regs self.regs = regs
self.name = name self.name = name
if config_csv is None: self.config_csv = config_csv
if self.config_csv is None:
self.config_csv = name + ".csv" self.config_csv = name + ".csv"
if clk_freq is None: if clk_freq is None:
try: try: