adafruit / Adafruit_CircuitPython_PN532

CircuitPython driver for the PN532 NFC/RFID Breakout and PN532 NFC/RFID Shield
MIT License
91 stars 47 forks source link

accept longer ATS for ISO14443A-4 cards #47

Closed the-infinity closed 2 years ago

the-infinity commented 3 years ago

See https://github.com/adafruit/Adafruit_CircuitPython_PN532/issues/13 .

FoamyGuy commented 2 years ago

the actions results don't seem to load. This is currently failing pylint due to duplicate line check:

************* Module adafruit_pn532.adafruit_pn532
adafruit_pn532/adafruit_pn532.py:1:0: R0801: Similar lines in 2 files
==adafruit_pn532.i2c:66
==adafruit_pn532.spi:74
                return True  # No longer busy
            time.sleep(0.01)  # lets ask again soon!
        # Timed out!
        return False

    def _read_data(self, count):
        """Read a specified count of bytes from the PN532."""
        # Build a read request frame.
        frame = bytearray(count + 1) (duplicate-code)
adafruit_pn532/adafruit_pn532.py:1:0: R0801: Similar lines in 2 files
==adafruit_pn532.i2c:39
==adafruit_pn532.spi:50
        super().__init__(debug=debug, irq=irq, reset=reset)

    def _wakeup(self):  # pylint: disable=no-self-use
        """Send any special commands/data to wake up PN532"""
        if self._reset_pin:
            self._reset_pin.value = True
            time.sleep(0.01) (duplicate-code)

------------------------------------

I think the instances that were flagged were not modified by this PR