mxgxw / MFRC522-python

A small class to interface with the NFC reader Module MFRC522
GNU Lesser General Public License v3.0
524 stars 418 forks source link

closing API for SPI file descriptor #47

Open milinddeore opened 6 years ago

milinddeore commented 6 years ago

This code is missing cleaning up for the open file descriptor. Just like we open spi.openSPI() we must also clean up by calling spi.closeSPI(). This is required when dealing various SPI slaves and when you need to open and close to those slaves often. This can cause too many open file descriptors.