diff options
-rw-r--r-- | src/target/trx_toolkit/burst_fwd.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/target/trx_toolkit/burst_fwd.py b/src/target/trx_toolkit/burst_fwd.py index 38ce18f3..164271fe 100644 --- a/src/target/trx_toolkit/burst_fwd.py +++ b/src/target/trx_toolkit/burst_fwd.py @@ -43,9 +43,12 @@ class BurstForwarder: """ - def __init__(self, trx_list = []): + def __init__(self, trx_list = None): # List of Transceiver instances - self.trx_list = trx_list + if trx_list is not None: + self.trx_list = trx_list + else: + self.trx_list = [] def add_trx(self, trx): if trx in self.trx_list: |