2
0
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:
Sebastien Bourdeauducq 2017-06-20 00:49:38 +08:00
parent 39ddb66f0f
commit 8c56a95fa2

View File

@ -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