Skip to content

Commit 22d2dfe

Browse files
committed
Black linted
1 parent b26276d commit 22d2dfe

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

adafruit_platformdetect/chip.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ def id(
8989
)
9090
if os.environ.get("BLINKA_GREATFET"):
9191
from greatfet import GreatFET
92+
from greatfet.errors import DeviceNotFoundError
9293

9394
try:
94-
gf = GreatFET()
95+
_ = GreatFET()
9596
return chips.LPC4330
9697
except DeviceNotFoundError():
9798
raise RuntimeError(

bin/detect.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
print("Is this a generic Linux PC?", detector.board.GENERIC_LINUX_PC)
2626
print(
2727
"Is this an OS environment variable special case?",
28-
detector.board.FTDI_FT232H | detector.board.MICROCHIP_MCP2221 | detector.board.BINHO_NOVA | detector.board.GREATFET_ONE,
28+
detector.board.FTDI_FT232H
29+
| detector.board.MICROCHIP_MCP2221
30+
| detector.board.BINHO_NOVA
31+
| detector.board.GREATFET_ONE,
2932
)
3033

3134
if detector.board.any_raspberry_pi:

0 commit comments

Comments
 (0)