mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
spi: add default busno
This commit is contained in:
parent
39ddb66f0f
commit
8c56a95fa2
@ -306,7 +306,7 @@ class NRTSPIMaster:
|
||||
|
||||
See :class:`SPIMaster` for a description of the methods.
|
||||
"""
|
||||
def __init__(self, dmgr, busno, core_device="core"):
|
||||
def __init__(self, dmgr, busno=0, core_device="core"):
|
||||
self.core = dmgr.get(core_device)
|
||||
self.busno = busno
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user