From 9ba8dfbf236537d096507ea406bf5a516190c826 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 26 Dec 2015 22:11:57 +0800 Subject: [PATCH] gateware/rtio/core: avoid potential python bug --- artiq/gateware/rtio/core.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/artiq/gateware/rtio/core.py b/artiq/gateware/rtio/core.py index 82c942c37..94e250c62 100644 --- a/artiq/gateware/rtio/core.py +++ b/artiq/gateware/rtio/core.py @@ -290,8 +290,13 @@ class _InputManager(Module): class Channel: - def __init__(self, interface, probes=[], overrides=[], + def __init__(self, interface, probes=None, overrides=None, ofifo_depth=64, ififo_depth=64): + if probes is None: + probes = [] + if overrides is None: + overrides = [] + self.interface = interface self.probes = probes self.overrides = overrides