forked from M-Labs/artiq
1
0
Fork 0

spi: add default busno

This commit is contained in:
Sebastien Bourdeauducq 2017-06-20 00:49:38 +08:00
parent 39ddb66f0f
commit 8c56a95fa2
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ class NRTSPIMaster:
See :class:`SPIMaster` for a description of the methods. 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.core = dmgr.get(core_device)
self.busno = busno self.busno = busno