From 8c56a95fa2301cb17acb438b256f8217cd6780d1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 20 Jun 2017 00:49:38 +0800 Subject: [PATCH] spi: add default busno --- artiq/coredevice/spi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/coredevice/spi.py b/artiq/coredevice/spi.py index a356f29b6..c5422f11c 100644 --- a/artiq/coredevice/spi.py +++ b/artiq/coredevice/spi.py @@ -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