From fde320dc6696cafce82340500d6ff92d299d7cb4 Mon Sep 17 00:00:00 2001 From: Thomas Preston Date: Thu, 10 Oct 2013 09:47:48 +0100 Subject: [PATCH] fixed spi del bug --- pifacecommon/spi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pifacecommon/spi.py b/pifacecommon/spi.py index 7d938aa..537686b 100644 --- a/pifacecommon/spi.py +++ b/pifacecommon/spi.py @@ -27,6 +27,7 @@ def __init__(self, bus=0, chip_select=0, spi_callback=None): self.bus = bus self.chip_select = chip_select self.spi_callback = spi_callback + self.fd = None spi_device = "%s%d.%d" % (SPIDEV, self.bus, self.chip_select) self.open_fd(spi_device)