re-enable pylint check. Try fix by setting result to variable.
This commit is contained in:
parent
0e7d9b938d
commit
0b8cc7f076
1 changed files with 2 additions and 3 deletions
|
@ -185,7 +185,6 @@ class BusyError(Exception):
|
||||||
class PN532:
|
class PN532:
|
||||||
"""PN532 driver base, must be extended for I2C/SPI/UART interfacing"""
|
"""PN532 driver base, must be extended for I2C/SPI/UART interfacing"""
|
||||||
|
|
||||||
# pylint: disable=pointless-statement
|
|
||||||
def __init__(self, *, debug=False, reset=None):
|
def __init__(self, *, debug=False, reset=None):
|
||||||
"""Create an instance of the PN532 class
|
"""Create an instance of the PN532 class
|
||||||
"""
|
"""
|
||||||
|
@ -197,11 +196,11 @@ class PN532:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self._wakeup()
|
self._wakeup()
|
||||||
self.firmware_version # first time often fails, try 2ce
|
_ = self.firmware_version # first time often fails, try 2ce
|
||||||
return
|
return
|
||||||
except (BusyError, RuntimeError):
|
except (BusyError, RuntimeError):
|
||||||
pass
|
pass
|
||||||
self.firmware_version
|
_ = self.firmware_version
|
||||||
|
|
||||||
def _read_data(self, count):
|
def _read_data(self, count):
|
||||||
# Read raw data from device, not including status bytes:
|
# Read raw data from device, not including status bytes:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue