Commit cb678a0f authored by David Adam's avatar David Adam
Browse files

MIFARE: compatibility with PySerial 3

parent b728c696
......@@ -34,7 +34,7 @@ class MIFAREReader:
The file-like object is generally a pyserial Serial object.'''
self.io = io
if isinstance(self.io, serial.Serial):
self.io.setTimeout(2)
self.io.setTimeout = 2
self.address = '\x00\x00'
def get_absolute_block(self, vector):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment