Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
UCC Snack Machine Server Code
Commits
cb678a0f
Commit
cb678a0f
authored
Feb 01, 2018
by
David Adam
Browse files
MIFARE: compatibility with PySerial 3
parent
b728c696
Changes
1
Show whitespace changes
Inline
Side-by-side
VendServer/MIFAREDriver.py
View file @
cb678a0f
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment