Skip to content

Commit 7d7e3ce

Browse files
committed
Satisfy black formatting
1 parent e9dbe2d commit 7d7e3ce

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

adafruit_pn532/adafruit_pn532.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,12 @@ def power_down(self):
343343
hard power down is performed, if not, a soft power down is performed
344344
instead. Returns True if the PN532 was powered down successfully or
345345
False if not."""
346-
if self._reset_pin: # Hard Power Down if the reset pin is connected
346+
if self._reset_pin: # Hard Power Down if the reset pin is connected
347347
self._reset_pin.value = False
348348
self.low_power = True
349349
else:
350350
# Soft Power Down otherwise. Enable wakeup on I2C, SPI, UART
351-
response = self.call_function(_COMMAND_POWERDOWN, params=[0xb0, 0x00])
351+
response = self.call_function(_COMMAND_POWERDOWN, params=[0xB0, 0x00])
352352
self.low_power = response[0] == 0x00
353353
time.sleep(0.005)
354354
return self.low_power

adafruit_pn532/i2c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _wakeup(self): # pylint: disable=no-self-use
7171
self._req.value = True
7272
time.sleep(0.01)
7373
self.low_power = False
74-
self.SAM_configuration() # Put the PN532 back in normal mode
74+
self.SAM_configuration() # Put the PN532 back in normal mode
7575

7676
def _wait_ready(self, timeout=1):
7777
"""Poll PN532 if status byte is ready, up to `timeout` seconds"""

adafruit_pn532/spi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _wakeup(self):
7979
spi.write(bytearray([0x00])) # pylint: disable=no-member
8080
time.sleep(0.01)
8181
self.low_power = False
82-
self.SAM_configuration() # Put the PN532 back in normal mode
82+
self.SAM_configuration() # Put the PN532 back in normal mode
8383

8484
def _wait_ready(self, timeout=1):
8585
"""Poll PN532 if status byte is ready, up to `timeout` seconds"""

adafruit_pn532/uart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ def _wakeup(self):
6161
self.low_power = False
6262
self._uart.write(
6363
b"\x55\x55\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
64-
) # wake up!
64+
) # wake up!
6565
self.SAM_configuration()
6666

6767
def _wait_ready(self, timeout=1):
6868
"""Wait `timeout` seconds"""
6969
timestamp = time.monotonic()
7070
while (time.monotonic() - timestamp) < timeout:
7171
if self._uart.in_waiting > 0:
72-
return True # No Longer Busy
72+
return True # No Longer Busy
7373
time.sleep(0.01) # lets ask again soon!
7474
# Timed out!
7575
return False

0 commit comments

Comments
 (0)